diff options
author | Ingo Blechschmidt <iblech@web.de> | 2020-04-13 05:56:20 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2021-07-20 15:22:31 +0200 |
commit | 5143ab9f742d27086790e07ebf35f36cb6b26ade (patch) | |
tree | ec6962b7594145bfe08ca464c567fce57ffde616 /nixos/lib/test-driver | |
parent | b59c06dc92f8d03660eb4155754d93a6c34cda83 (diff) | |
download | nixlib-5143ab9f742d27086790e07ebf35f36cb6b26ade.tar nixlib-5143ab9f742d27086790e07ebf35f36cb6b26ade.tar.gz nixlib-5143ab9f742d27086790e07ebf35f36cb6b26ade.tar.bz2 nixlib-5143ab9f742d27086790e07ebf35f36cb6b26ade.tar.lz nixlib-5143ab9f742d27086790e07ebf35f36cb6b26ade.tar.xz nixlib-5143ab9f742d27086790e07ebf35f36cb6b26ade.tar.zst nixlib-5143ab9f742d27086790e07ebf35f36cb6b26ade.zip |
tigervnc, tightvnc: add basic tests
Co-Authored-By: Ingo Blechschmidt <iblech@web.de>
Diffstat (limited to 'nixos/lib/test-driver')
-rw-r--r-- | nixos/lib/test-driver/test-driver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py index 15eaba88476f..2a3e4d94b948 100644 --- a/nixos/lib/test-driver/test-driver.py +++ b/nixos/lib/test-driver/test-driver.py @@ -499,7 +499,7 @@ class Machine: output += out return output - def wait_until_succeeds(self, command: str) -> str: + def wait_until_succeeds(self, command: str, timeout: int = 900) -> str: """Wait until a command returns success and return its output. Throws an exception on timeout. """ @@ -511,7 +511,7 @@ class Machine: return status == 0 with self.nested("waiting for success: {}".format(command)): - retry(check_success) + retry(check_success, timeout) return output def wait_until_fails(self, command: str) -> str: |