summaryrefslogtreecommitdiff
path: root/tools/util_test.py
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-05-09 01:15:24 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-05-08 19:15:24 -0400
commitac8c6fec5bb2be97c8dbdb2286d2688575a593f2 (patch)
tree835335d3d48d77c6d5299af723b91adc2bc857b3 /tools/util_test.py
parentec9080f34c936d9af56cca68de664954053bf423 (diff)
Refactor unit test runner (#2294)
Properly discovers the permissions needed for each test.
Diffstat (limited to 'tools/util_test.py')
-rw-r--r--tools/util_test.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/util_test.py b/tools/util_test.py
index e4c8e697b..b5d5dcc98 100644
--- a/tools/util_test.py
+++ b/tools/util_test.py
@@ -48,37 +48,6 @@ def shell_quote_win_test():
'a"b""c\\d\\"e\\\\')
-def parse_unit_test_output_test():
- print "Testing util.parse_unit_test_output()..."
- # This is an example of a successful unit test output.
- output = open(
- os.path.join(util.root_path, "tools/testdata/unit_test_output1.txt"))
- (actual, expected) = util.parse_unit_test_output(output, False)
- assert actual == 96
- assert expected == 96
-
- # This is an example of a silently dying unit test.
- output = open(
- os.path.join(util.root_path, "tools/testdata/unit_test_output2.txt"))
- (actual, expected) = util.parse_unit_test_output(output, False)
- assert actual == None
- assert expected == 96
-
- # This is an example of compiling before successful unit tests.
- output = open(
- os.path.join(util.root_path, "tools/testdata/unit_test_output3.txt"))
- (actual, expected) = util.parse_unit_test_output(output, False)
- assert actual == 96
- assert expected == 96
-
- # Check what happens on empty output.
- from StringIO import StringIO
- output = StringIO("\n\n\n")
- (actual, expected) = util.parse_unit_test_output(output, False)
- assert actual == None
- assert expected == None
-
-
def parse_wrk_output_test():
print "Testing util.parse_wrk_output_test()..."
f = open(os.path.join(util.root_path, "tools/testdata/wrk1.txt"))
@@ -101,7 +70,6 @@ def util_test():
pattern_match_test()
parse_exit_code_test()
shell_quote_win_test()
- parse_unit_test_output_test()
parse_wrk_output_test()