summaryrefslogtreecommitdiffhomepage
path: root/test/unit
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-08-22 15:26:15 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-08-22 15:26:15 +0300
commit08601bbbf07a462924e4c6894b5fd6e83b7725ac (patch)
tree63db3be5537f15080488238cd3de06f9c98c00a6 /test/unit
parentb4c09e29548a2de0bb967a9d7f6c0601cb3e429f (diff)
downloadunit-08601bbbf07a462924e4c6894b5fd6e83b7725ac.tar.gz
unit-08601bbbf07a462924e4c6894b5fd6e83b7725ac.tar.bz2
Tests: "--unsafe" option introduced.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/main.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/main.py b/test/unit/main.py
index 27f8bff9..1f19343e 100644
--- a/test/unit/main.py
+++ b/test/unit/main.py
@@ -333,6 +333,13 @@ class TestUnit(unittest.TestCase):
action='store_true',
help='Save unit.log after the test execution',
)
+ parser.add_argument(
+ '-u',
+ '--unsafe',
+ dest='unsafe',
+ action='store_true',
+ help='Run unsafe tests',
+ )
return parser.parse_known_args()
@@ -340,6 +347,7 @@ class TestUnit(unittest.TestCase):
def _set_args(args):
TestUnit.detailed = args.detailed
TestUnit.save_log = args.save_log
+ TestUnit.unsafe = args.unsafe
if TestUnit.detailed:
fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0)