Skip to content

Commit

Permalink
feat: support -v or -vv in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-te committed Apr 17, 2023
1 parent 8b80016 commit d49d764
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/integ-test/integ_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d49d764

Please sign in to comment.