Commit a92a6712 authored by Maria Matejka's avatar Maria Matejka

Netlab: Option to fail even for successful test

parent ec171ab7
......@@ -7,7 +7,8 @@ import argparse
import tests.base as t
parser = argparse.ArgumentParser()
parser.add_argument("-m", choices=["save", "check"])
parser.add_argument("-m", choices=["save", "check"], help="save the values or check the stored values")
parser.add_argument("-f", action="store_true", help="always fail")
parser.add_argument("testdir", nargs="*")
parser.parse_args("testdir".split())
args = parser.parse_args()
......@@ -18,6 +19,6 @@ for testdir in args.testdir:
sys.exit(1)
success = t.run()
if not success:
if not success or args.f:
sys.exit(1)
t.cleanup()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment