]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Treat bt_test.py failures as "SKIP" on freebsd.
authorNick Mathewson <nickm@torproject.org>
Mon, 1 Feb 2016 19:11:45 +0000 (14:11 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 1 Feb 2016 19:11:45 +0000 (14:11 -0500)
Closes #18204.

changes/bug18204_028 [new file with mode: 0644]
src/test/bt_test.py
src/test/test_bt.sh

diff --git a/changes/bug18204_028 b/changes/bug18204_028
new file mode 100644 (file)
index 0000000..3a1a116
--- /dev/null
@@ -0,0 +1,3 @@
+  o Testing:
+    - Treat backtrace test failures as expected on FreeBSD until we
+      solve bug 17808. Closes ticket 18204.
index dab02d7699291216456873f5378ae138745b638b..30591453b9aab8941c7c54576a0ed8d536955102 100755 (executable)
@@ -39,7 +39,15 @@ for I in range(len(LINES)):
         print("OK")
         sys.exit(0)
 
+print("BAD")
+
 for l in LINES:
     print("{}".format(l), end="")
 
+if sys.platform.startswith('freebsd'):
+    # See bug #17808 if you know how to fix this.
+    print("Test failed; but FreeBSD is known to have backtrace problems.\n"
+          "Treating as 'SKIP'.")
+    sys.exit(77)
+
 sys.exit(1)
index f55f451f92eea2536cccc5986697afc80ee9bfeb..033acac955b884fba6248edd5787608b8de9f626 100755 (executable)
@@ -3,8 +3,8 @@
 
 exitcode=0
 
-"${builddir:-.}/src/test/test-bt-cl" backtraces || exit 77
-"${builddir:-.}/src/test/test-bt-cl" assert | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode=1
-"${builddir:-.}/src/test/test-bt-cl" crash  | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode=1
+"${builddir:-.}/src/test/test-bt-cl" backtraces || exit $?
+"${builddir:-.}/src/test/test-bt-cl" assert | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
+"${builddir:-.}/src/test/test-bt-cl" crash  | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
 
 exit ${exitcode}