diff --git a/test/integ-test/integ_test.py b/test/integ-test/integ_test.py index 188017d..272783f 100755 --- a/test/integ-test/integ_test.py +++ b/test/integ-test/integ_test.py @@ -214,4 +214,13 @@ def test_template_variables_list(shoelaces_instance, script, env, vars): if __name__ == "__main__": - pytest.main(args=['-v'], plugins=None) + verbosity = '' + if len(sys.argv) == 1: + verbosity = '-v' + elif len(sys.argv) == 2 and (sys.argv[1] == '-v' or sys.argv[1] == '-vv'): + verbosity = sys.argv[1] + else: + print("[*] Incorrect parameters. Only '-v' or '-vv' are supported.") + sys.exit(1) + + pytest.main(args=[verbosity], plugins=None)