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.

kilianar a3c5c5ee 2543ab97

Changed files
+2 -1
nixos
tests
+2 -1
nixos/tests/airsonic.nix
···
testScript = ''
def airsonic_is_up(_) -> bool:
-
return machine.succeed("curl --fail http://localhost:4040/login")
machine.start()
···
testScript = ''
def airsonic_is_up(_) -> bool:
+
status, _ = machine.execute("curl --fail http://localhost:4040/login")
+
return status == 0
machine.start()