Commit 49f2088d authored by Sam Thursfield's avatar Sam Thursfield

functional-tests: Ensure writeback tests load data from the build tree

We don't support installing the functional-tests any more.
parent 96cb8ded
......@@ -42,12 +42,7 @@ class CommonTrackerWritebackTest (ut.TestCase):
"""
def __prepare_directories(self):
if (os.path.exists(os.getcwd() + "/test-writeback-data")):
# Use local directory if available
datadir = os.getcwd() + "/test-writeback-data"
else:
datadir = os.path.join(cfg.DATADIR, "tracker-tests",
"test-writeback-data")
datadir = os.path.join(os.path.dirname(__file__), '..', '..', 'test-writeback-data')
for testfile in [TEST_FILE_JPEG, TEST_FILE_PNG, TEST_FILE_TIFF]:
origin = os.path.join(datadir, testfile)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment