diff --git a/ipatests/ipa-run-tests b/ipatests/ipa-run-tests index 018f86b71..d36fd3882 100755 --- a/ipatests/ipa-run-tests +++ b/ipatests/ipa-run-tests @@ -70,6 +70,15 @@ class ArgsManglePlugin(object): # a file or directory relative to ipatests package args[idx] = sep.join((os.path.join(HERE, filename), suffix)) + # replace ignores, e.g. "--ignore test_integration" is changed to + # "--ignore path/to/ipatests/test_integration" + if ns.ignore: + for ignore in ns.ignore: + idx = args.index(ignore) + if os.path.exists(ignore): + continue + args[idx] = os.path.join(HERE, ignore) + # rebuild early_config's known args with new args. The known args # are used for initial conftest.py from ipatests, which adds # additional arguments.