summaryrefslogtreecommitdiffstats
path: root/lldb/test/dotest.py
diff options
context:
space:
mode:
authorRobert Flack <flackr@gmail.com>2015-04-09 18:07:58 +0000
committerRobert Flack <flackr@gmail.com>2015-04-09 18:07:58 +0000
commit068898cb83e545abeb708bf3ff8b372c61c336d5 (patch)
treea6f720ee29741a14a4f79a9fd5ff998c1347cdb0 /lldb/test/dotest.py
parent53703d0862c1454c222157e5d557b1053016e4c2 (diff)
downloadbcm5719-llvm-068898cb83e545abeb708bf3ff8b372c61c336d5.tar.gz
bcm5719-llvm-068898cb83e545abeb708bf3ff8b372c61c336d5.zip
Fix @skipUnlessPlatform and @skipIfPlatform decorators to work on classes.
The decorators to skip if or unless certain platforms relied on calling skipTest, which only worked if they were decorating individual test cases. However for decorating entire classes it needs different behavior. This behavior is already encapsulated in unittest2.skipIf and unittest2.skipUnless so this modifies the platform decorators to use these unittest skip decorators. Test Plan: ./dotest.py -t -p TestObjCMethods2.py See skipped tests on linux, and see tests run on macosx. Differential Revision: http://reviews.llvm.org/D8903 llvm-svn: 234514
Diffstat (limited to 'lldb/test/dotest.py')
-rwxr-xr-xlldb/test/dotest.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py
index e1db767a96f..227714ce097 100755
--- a/lldb/test/dotest.py
+++ b/lldb/test/dotest.py
@@ -1320,16 +1320,6 @@ setupCrashInfoHook()
if not skip_long_running_test:
os.environ["LLDB_SKIP_LONG_RUNNING_TEST"] = "NO"
-#
-# Walk through the testdirs while collecting tests.
-#
-for testdir in testdirs:
- os.path.walk(testdir, visit, 'Test')
-
-#
-# Now that we have loaded all the test cases, run the whole test suite.
-#
-
# For the time being, let's bracket the test runner within the
# lldb.SBDebugger.Initialize()/Terminate() pair.
import lldb
@@ -1383,6 +1373,16 @@ dont_do_debugserver_test = "linux" in target_platform or "freebsd" in target_pla
# Don't do lldb-server (llgs) tests on anything except Linux.
dont_do_llgs_test = not ("linux" in target_platform)
+#
+# Walk through the testdirs while collecting tests.
+#
+for testdir in testdirs:
+ os.path.walk(testdir, visit, 'Test')
+
+#
+# Now that we have loaded all the test cases, run the whole test suite.
+#
+
# Put the blacklist in the lldb namespace, to be used by lldb.TestBase.
lldb.blacklist = blacklist
OpenPOWER on IntegriCloud