From 9711ecc3174b511a534086f6d238f1ab796404f6 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 13 Jul 2023 12:40:32 +0100 Subject: [PATCH] MNT: Try nd make feedsRun script executable if not --- pyfeeds/testing.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyfeeds/testing.py b/pyfeeds/testing.py index dd4fd66..aef091b 100644 --- a/pyfeeds/testing.py +++ b/pyfeeds/testing.py @@ -604,6 +604,13 @@ def runTest(pyf, log.debug('(Re-)Creating test output directory: %s', outputDir) os.makedirs(outputDir) + # Try to make executable if not + if not os.access(test.testScript, os.X_OK): + try: + os.chmod(test.testScript, 0o755) + except Exception: + log.warning('%s is not executable!', test.testScript) + cmd = [test.testScript, outputDir, sandboxDir, benchmarkDir] cmd = [str(c) for c in cmd] -- GitLab