gentoo/dev-util/itstool/files/itstool-2.0.7-raw-string-testrunner.patch
Holger Hoffstätte 681fc965dd
dev-util/itstool: add 2.0.7_p20250326 snapshot
- add git snapshot due to lack of releases
- add patch to move from libxml2 to lxml
- drop a patch that fixed a UAF in libxml2
- drop python-3.10, add python 3.14
- enable tests, successfully run with python-3.13/14

Closes: https://bugs.gentoo.org/964167
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/44143
Closes: https://github.com/gentoo/gentoo/pull/44143
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-12 17:46:58 +01:00

16 lines
742 B
Diff

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)