diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5670e3a146cdc7edc1c3fc53c1e483205317631e..fa4650f27400172b7d6c2205af0ee1174e9f2783 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,15 @@ ===================== + +0.12.2 (Thursday 13th July 2023) +-------------------------------- + + +* Pyfeeds will try to make ``feedsRun`` scripts executable if they are not + already. + + 0.12.1 (Friday 31st March 2023) ------------------------------- diff --git a/pyfeeds/__init__.py b/pyfeeds/__init__.py index 094c0ed50276bb62fbe3b3cd226c565763f99bd6..291bb2d8188a2d207d035cf716107cf0306655ab 100644 --- a/pyfeeds/__init__.py +++ b/pyfeeds/__init__.py @@ -5,7 +5,7 @@ # Author: Paul McCarthy <pauldmccarthy@gmail.com> # -__version__ = '0.12.1' +__version__ = '0.12.2' """The pyfeeds version number. """ 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]