Skip to content
Snippets Groups Projects
Commit ef1dc258 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'mnt/mkexec' into 'master'

Mnt/mkexec

See merge request !35
parents 6bd8fd46 0ad2616e
No related branches found
No related tags found
1 merge request!35Mnt/mkexec
Pipeline #19271 passed
......@@ -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)
-------------------------------
......
......@@ -5,7 +5,7 @@
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
__version__ = '0.12.1'
__version__ = '0.12.2'
"""The pyfeeds version number. """
......
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment