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:
Cole Robinson 2020-07-13 08:30:04 -04:00
parent 2862b68292
commit 247170c066

View File

@ -1482,7 +1482,7 @@ for _cmd in _cmdlist:
_base = os.path.splitext(os.path.basename(_cmd.compare_file))[0]
_name += _base.replace("-", "_")
else:
_name += _cmd.app.replace("-", "_")
_name += os.path.basename(_cmd.app.replace("-", "_"))
setattr(CLITests, _name, maketest(_cmd))
atexit.register(cleanup)