aboutsummaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-07 03:02:23 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-08 13:06:07 +0200
commitd1bedb1160c8f9e24c0371c64c9eab10b1bca4fa (patch)
tree0ebbfbbcc5fd8902dfe9cfeb097c3fb863e6f825 /selftest
parent67cea22236096a23e096e2c119dc03f74398f5c2 (diff)
selftest: suite_test: ignore line numbers
Diffstat (limited to 'selftest')
-rw-r--r--selftest/suite_test.ok24
-rw-r--r--selftest/suite_test.ok.ign1
2 files changed, 13 insertions, 12 deletions
diff --git a/selftest/suite_test.ok b/selftest/suite_test.ok
index b20bdc5..bb04e49 100644
--- a/selftest/suite_test.ok
+++ b/selftest/suite_test.ok
@@ -52,21 +52,21 @@ tst test_suite: Reserving 1 x nitb_iface (candidates: 3) [test_suite↪test_sui
tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
addr: 10.42.42.1
[test_suite↪test_suite]
-tst hello_world.py: START [test_suite↪hello_world.py]
-tst hello_world.py:3: hello world [test_suite↪hello_world.py:3]
-tst hello_world.py:4: I am 'test_suite' / 'hello_world.py:4' [test_suite↪hello_world.py:4]
-tst hello_world.py:5: one [test_suite↪hello_world.py:5]
-tst hello_world.py:5: two [test_suite↪hello_world.py:5]
-tst hello_world.py:5: three [test_suite↪hello_world.py:5]
-tst hello_world.py: PASS [test_suite↪hello_world.py]
+tst hello_world.py:[LINENR] START [test_suite↪hello_world.py]
+tst hello_world.py:[LINENR]: hello world [test_suite↪hello_world.py:[LINENR]]
+tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suite↪hello_world.py:[LINENR]]
+tst hello_world.py:[LINENR]: one [test_suite↪hello_world.py:[LINENR]]
+tst hello_world.py:[LINENR]: two [test_suite↪hello_world.py:[LINENR]]
+tst hello_world.py:[LINENR]: three [test_suite↪hello_world.py:[LINENR]]
+tst hello_world.py:[LINENR] PASS [test_suite↪hello_world.py]
pass: all 1 tests passed.
- a test with an error
-tst test_suite: Suite run start [suite.py:191]
-tst test_error.py: START [test_suite↪test_error.py] [suite.py:96]
-tst test_error.py:3: I am 'test_suite' / 'test_error.py:3' [test_suite↪test_error.py:3] [test_error.py:3]
-tst test_error.py:5: FAIL [test_suite↪test_error.py:5] [suite.py:108]
-tst test_error.py:5: ERR: AssertionError: [test_suite↪test_error.py:5] [test_error.py:5: assert False]
+tst test_suite: Suite run start [suite.py:[LINENR]]
+tst test_error.py:[LINENR] START [test_suite↪test_error.py] [suite.py:[LINENR]]
+tst test_error.py:[LINENR]: I am 'test_suite' / 'test_error.py:[LINENR]' [test_suite↪test_error.py:[LINENR]] [test_error.py:[LINENR]]
+tst test_error.py:[LINENR]: FAIL [test_suite↪test_error.py:[LINENR]] [suite.py:[LINENR]]
+tst test_error.py:[LINENR]: ERR: AssertionError: [test_suite↪test_error.py:[LINENR]] [test_error.py:[LINENR]: assert False]
FAIL: 1 of 1 tests failed:
test_error.py
diff --git a/selftest/suite_test.ok.ign b/selftest/suite_test.ok.ign
index 393ce95..a19fb8b 100644
--- a/selftest/suite_test.ok.ign
+++ b/selftest/suite_test.ok.ign
@@ -1 +1,2 @@
/[^ ]*/selftest/ [PATH]/selftest/
+\.py:[0-9]* .py:[LINENR]