diff options
author | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-09 19:40:32 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-22 20:38:56 +0100 |
commit | a0a07e39360c1732b24f7a01fe59ad84a6d49310 (patch) | |
tree | acabc77c575620b83fb797a0053d5bda25e3fc23 /nixos/tests/fish.nix | |
parent | 541e2ca6d341f1571b8f57aff42dad641eae8cac (diff) |
nixos/fish: port test to python
Diffstat (limited to 'nixos/tests/fish.nix')
-rw-r--r-- | nixos/tests/fish.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nixos/tests/fish.nix b/nixos/tests/fish.nix index 97c4e8e37ac1..68fba428439b 100644 --- a/nixos/tests/fish.nix +++ b/nixos/tests/fish.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ pkgs, ... }: { +import ./make-test-python.nix ({ pkgs, ... }: { name = "fish"; machine = @@ -14,8 +14,11 @@ import ./make-test.nix ({ pkgs, ... }: { testScript = '' - $machine->waitForFile("/etc/fish/generated_completions/coreutils.fish"); - $machine->waitForFile("/etc/fish/generated_completions/kill.fish"); - $machine->succeed("fish -ic 'echo \$fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.local/share/fish/generated_completions\$'"); + start_all() + machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish") + machine.wait_for_file("/etc/fish/generated_completions/kill.fish") + machine.succeed( + "fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.local/share/fish/generated_completions$'" + ) ''; }) |