mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
tests: cli: Make test names easier to match with pytest
pytest doesn't like './' in the name Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
2862b68292
commit
247170c066
@ -1482,7 +1482,7 @@ for _cmd in _cmdlist:
|
|||||||
_base = os.path.splitext(os.path.basename(_cmd.compare_file))[0]
|
_base = os.path.splitext(os.path.basename(_cmd.compare_file))[0]
|
||||||
_name += _base.replace("-", "_")
|
_name += _base.replace("-", "_")
|
||||||
else:
|
else:
|
||||||
_name += _cmd.app.replace("-", "_")
|
_name += os.path.basename(_cmd.app.replace("-", "_"))
|
||||||
setattr(CLITests, _name, maketest(_cmd))
|
setattr(CLITests, _name, maketest(_cmd))
|
||||||
|
|
||||||
atexit.register(cleanup)
|
atexit.register(cleanup)
|
||||||
|
Loading…
Reference in New Issue
Block a user