Marijan Petričević
61c61f80e5
nixos/test: added verbose output for failed tests
2020-01-14 09:33:10 +01:00
Jacek Galowicz
e05ae69904
nixos/test: Use retry() in all looping functions that need timeouts
2019-12-03 16:59:43 +01:00
Michael Raskin
ad38a08ecb
test-driver.py: add Machine.copy_from_vm
2019-11-25 11:35:48 +01:00
Michael Raskin
ef5bc381f9
test-driver.py: Fix the shared directory reference
2019-11-25 11:33:47 +01:00
Robin Gloster
ba03a1b731
nixos/tests: fail on failing subtests
...
This was the behaviour in the perl test driver too and a regression.
Also cleaned up unused imports
2019-11-25 01:08:06 +01:00
Florian Klink
758efb9348
Merge pull request #73190 from flokli/ceph-tests-python
...
WIP: nixos/ceph: port tests to python
2019-11-21 20:13:41 +01:00
Jacek Galowicz
4dba4db1db
nixos/test: let python driver evaluate test code in global scope so the
...
user can define and use functions
2019-11-20 19:08:18 +01:00
Jacek Galowicz
72dd1c6a74
nixos/test: If qemu monitor returns 0, simply return (like perl script does)
2019-11-20 17:38:20 +01:00
Jacek Galowicz
67e2042861
nixos/test: Fix child environment of python driver
2019-11-20 17:37:12 +01:00
Jörg Thalheim
03e6ca15e2
test-driver: add mypy support
...
It's a good idea to expand this in future to test code as well,
so we get type checking there as well.
2019-11-11 13:49:48 +00:00
Florian Klink
a8e9a93493
nixos/tests: fix succeed() with multiple commands
...
we previously immediately returned the first commands output, and didn't
execute any of the other commands.
Now, return the last commands output.
This should be documented in the method docstring.
2019-11-11 13:45:11 +01:00
Leonhard Markert
c7becac738
nixos/tests: correct arguments to get_unit_info
2019-11-08 15:01:42 +01:00
Marijan Petricevic
5854aaf680
nixos/tests: improve get_unit_info expressiveness on failure
2019-11-08 11:20:54 +01:00
worldofpeace
1e7ddf233a
Merge pull request #72943 from marijanp/port-test-driver-python
...
Port remaining test-driver functions to python
2019-11-07 20:23:27 +00:00
worldofpeace
6ed6d1af6a
Merge pull request #72947 from tfc/boot-test-port-fix
...
Boot test port fix
2019-11-07 17:32:43 +00:00
Jacek Galowicz
52ee1026b0
nixos/test: Handle undecodable bytes
...
This threw exceptions in boot menus
2019-11-07 10:00:39 +01:00
worldofpeace
3780b9e69c
Merge pull request #72835 from tfc/nixos-integration-test-ports
...
Nixos integration test ports
2019-11-07 01:05:36 +00:00
Marijan
9915a8ca45
nixos/tests: implemented python test-driver version of forwardPort
2019-11-06 22:43:37 +01:00
Marijan
01f79dfc9e
nixos/tests: implemented python test-driver version of dumpTTYContents
2019-11-06 22:43:37 +01:00
Jacek Galowicz
cf138b4e6b
nixos/tests: Fix subprocess launch call for VM monitor
...
This crashed in the create-script case
2019-11-06 21:48:08 +01:00
Daniel Schaefer
afbfef93a7
nixos/tests: Ignore shutdown/crash if not booted
...
Condition seems to be inverted. Crash and shutdown only make sense, when
the machine is booted; i.e. we return immediately otherwise.
In the Perl test driver this is:
return unless $self->{booted};
2019-11-06 16:06:43 +01:00
Jacek Galowicz
45b339b736
nixos/tests: Implement python test-driver version of getWindowNames and waitForWindow
2019-11-05 18:07:05 +01:00
Jacek Galowicz
9c54658226
nixos/tests: Implement python test-driver version of requireActiveUnit
2019-11-05 18:07:00 +01:00
Florian Klink
ac97edf013
nixos/test: use ptpython as repl
2019-11-04 23:50:27 +01:00
Jacek Galowicz
3a28fefe7d
nixos/test: Port test driver to python
...
Thanks @blitz and @jtraue for help with implementing machine methods
2019-11-04 23:50:27 +01:00