lol

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.

authored by

kilianar and committed by
Bjørn Forsman
a3c5c5ee 2543ab97

+2 -1
+2 -1
nixos/tests/airsonic.nix
··· 15 15 16 16 testScript = '' 17 17 def airsonic_is_up(_) -> bool: 18 - return machine.succeed("curl --fail http://localhost:4040/login") 18 + status, _ = machine.execute("curl --fail http://localhost:4040/login") 19 + return status == 0 19 20 20 21 21 22 machine.start()