diff options
author | Greg Clayton <gclayton@apple.com> | 2013-12-10 23:19:29 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-12-10 23:19:29 +0000 |
commit | 4570d3eba0db0e322115964257f36a086d89edcb (patch) | |
tree | fb45581bcbcca8498dafa485def3d4e85383307a /lldb/test/python_api/value | |
parent | 88b6898085e8b7d5a577eb0cfb16bf489842324c (diff) | |
download | bcm5719-llvm-4570d3eba0db0e322115964257f36a086d89edcb.tar.gz bcm5719-llvm-4570d3eba0db0e322115964257f36a086d89edcb.zip |
Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case.
This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated.
Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you.
llvm-svn: 196985
Diffstat (limited to 'lldb/test/python_api/value')
3 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/python_api/value/TestValueAPI.py b/lldb/test/python_api/value/TestValueAPI.py index 0d6d341bf0f..024088836a7 100644 --- a/lldb/test/python_api/value/TestValueAPI.py +++ b/lldb/test/python_api/value/TestValueAPI.py @@ -10,7 +10,7 @@ from lldbtest import * class ValueAPITestCase(TestBase): - mydir = os.path.join("python_api", "value") + mydir = TestBase.compute_mydir(__file__) @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @python_api_test diff --git a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py index 3d80fa3411c..b716335df71 100644 --- a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py +++ b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py @@ -10,7 +10,7 @@ from lldbtest import * class ChangeValueAPITestCase(TestBase): - mydir = os.path.join("python_api", "value", "change_values") + mydir = TestBase.compute_mydir(__file__) @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @python_api_test diff --git a/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py b/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py index f022ec43e4d..c20cc319537 100644 --- a/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py +++ b/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py @@ -11,7 +11,7 @@ from lldbtest import * class ValueAsLinkedListTestCase(TestBase): - mydir = os.path.join("python_api", "value", "linked_list") + mydir = TestBase.compute_mydir(__file__) @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @python_api_test |