mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
nixosTests.airsonic: fix failure (type error)
airsonic_is_up should return a bool, but machine.succeed returns a string causing testScriptWithTypes to fail. This is fixed by executing the cmd with machine.execute and checking the status code.
This commit is contained in:
parent
2543ab976c
commit
a3c5c5eec4
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
|||
|
||||
testScript = ''
|
||||
def airsonic_is_up(_) -> bool:
|
||||
return machine.succeed("curl --fail http://localhost:4040/login")
|
||||
status, _ = machine.execute("curl --fail http://localhost:4040/login")
|
||||
return status == 0
|
||||
|
||||
|
||||
machine.start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue