diff --git a/pyfeeds/testing.py b/pyfeeds/testing.py index dd4fd6655af5332b578e25ae2c7180325df2d48b..aef091b34294a69c119a96e3f33c36e79436d55f 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]