summaryrefslogtreecommitdiff
path: root/dev-util/itstool/files/itstool-2.0.7-raw-string-testrunner.patch
blob: 0f7d0b77b9a1956d8a4e23310756d16afa80df27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Followup fix to:
https://github.com/itstool/itstool/commit/32c7d07664dc37765100285d1202d488cd6a27e8
but for the test runner, which we can now run.

--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -379,7 +379,7 @@ class ITSTestRunner(unittest.TextTestRun
         test_binary_path = os.path.join(ITSTOOL_DIR, "itstool_test")
         shutil.copy(os.path.join(ITSTOOL_DIR, "itstool.in"), test_binary_path)
         data_dir = os.path.join(ITSTOOL_DIR, "its")
-        call("sed -i -e 's/@DATADIR@/%s/' %s" % (data_dir.replace('/', '\/'), test_binary_path), shell=True)
+        call("sed -i -e 's/@DATADIR@/%s/' %s" % (data_dir.replace('/', r'\/'), test_binary_path), shell=True)
 
         result = super(ITSTestRunner, self).run(test)