aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-03-15 12:15:11 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-03-15 12:15:11 +0200
commit95a2cbb421abc8b559f38043bd535e2180310ed4 (patch)
tree7fb42d0c106b13bffe63433469a19768a747041e /run_unittests.py
parent2be074b1d445fcd30535bcf7518f8ce0738bcbf3 (diff)
downloadmeson-filecleanup.zip
meson-filecleanup.tar.gz
meson-filecleanup.tar.bz2
Delete leftover files from some tests.filecleanup
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 7e7ec93..c5a43f6 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -5793,12 +5793,16 @@ class FailureTests(BasePlatformTests):
contain required keys.
'''
tdir = os.path.join(self.unit_test_dir, '20 subproj dep variables')
+ stray_file = os.path.join(tdir, 'subprojects/subsubproject.wrap')
+ if os.path.exists(stray_file):
+ os.unlink(stray_file)
out = self.init(tdir, inprocess=True)
self.assertRegex(out, r"Neither a subproject directory nor a .*nosubproj.wrap.* file was found")
self.assertRegex(out, r'Function does not take positional arguments.')
self.assertRegex(out, r'Dependency .*somenotfounddep.* from subproject .*subprojects/somesubproj.* found: .*NO.*')
self.assertRegex(out, r'Dependency .*zlibproxy.* from subproject .*subprojects.*somesubproj.* found: .*YES.*')
self.assertRegex(out, r'Missing key .*source_filename.* in subsubproject.wrap')
+ os.unlink(stray_file)
def test_exception_exit_status(self):
'''