summaryrefslogtreecommitdiffstats
path: root/nixos/tests/handbrake.nix
diff options
context:
space:
mode:
authorJan Hrnko <jan.hrnko@satoshilabs.com>2019-11-09 20:14:24 +0100
committerFlorian Klink <flokli@flokli.de>2019-11-22 20:38:56 +0100
commite4e1eea6257440050429d866b761f8ffa4e9c89c (patch)
treec28010576194f4c4b03e7660cba322eb1559740d /nixos/tests/handbrake.nix
parent98b28a776af779c6947d9592f2d7d72e6d35971c (diff)
nixos/handbrake: port test to python
Diffstat (limited to 'nixos/tests/handbrake.nix')
-rw-r--r--nixos/tests/handbrake.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/nixos/tests/handbrake.nix b/nixos/tests/handbrake.nix
index ae87e1f69a7d..e5fb6b269b19 100644
--- a/nixos/tests/handbrake.nix
+++ b/nixos/tests/handbrake.nix
@@ -1,4 +1,4 @@
-import ./make-test.nix ({ pkgs, ... }:
+import ./make-test-python.nix ({ pkgs, ... }:
let
# Download Big Buck Bunny example, licensed under CC Attribution 3.0.
testMkv = pkgs.fetchurl {
@@ -19,7 +19,13 @@ in {
testScript = ''
# Test MP4 and MKV transcoding. Since this is a short clip, transcoding typically
# only takes a few seconds.
- $machine->succeed("HandBrakeCLI -i ${testMkv} -o test.mp4 -e x264 -q 20 -B 160");
- $machine->succeed("HandBrakeCLI -i ${testMkv} -o test.mkv -e x264 -q 20 -B 160");
+ start_all()
+
+ machine.succeed(
+ "HandBrakeCLI -i ${testMkv} -o test.mp4 -e x264 -q 20 -B 160"
+ )
+ machine.succeed(
+ "HandBrakeCLI -i ${testMkv} -o test.mkv -e x264 -q 20 -B 160"
+ )
'';
})