mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
zdtm: Call criu.available() only for run action
When zdtm.py is executed with `list` sub-command the 'criu_bin'
option is not defined and criu.available() fails.
$ python test/zdtm.py list
Traceback (most recent call last):
File "test/zdtm.py", line 2243, in <module>
criu.available()
File "test/zdtm.py", line 1185, in available
if not os.access(opts['criu_bin'], os.X_OK):
KeyError: u'criu_bin'
However, we don't need to check the existence of criu_bin
unless we use the `run` action.
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Acked-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
2e7ef4f7b9
commit
d40c702dd8
1 changed files with 2 additions and 1 deletions
|
|
@ -2213,7 +2213,8 @@ if opts.get('sat', False):
|
|||
if opts['debug']:
|
||||
sys.settrace(traceit)
|
||||
|
||||
criu.available()
|
||||
if opts['action'] == 'run':
|
||||
criu.available()
|
||||
for tst in test_classes.values():
|
||||
tst.available()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue