Skip to content

Commit

Permalink
Merge pull request #10847 from amaltaro/fix-10846
Browse files Browse the repository at this point in the history
Fix python version in subprocess call for inject-test-wfs
  • Loading branch information
amaltaro authored Oct 1, 2021
2 parents 42f5675 + 2984614 commit 85d6d42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/data/ReqMgr/inject-test-wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ def main():
tmpFile = '/tmp/%s.json' % pwd.getpwuid(os.getuid()).pw_name
wfCounter = 0

# figure out which python version it is
pythonCmd = "python3" if sys.version_info[0] == 3 else "python"

for fname in templates:
logger.info("Processing template: %s", fname)
strComand = "python %s -u %s -f %s -i " % (reqMgrCommand, args.url, tmpFile)
strComand = "%s %s -u %s -f %s -i " % (pythonCmd, reqMgrCommand, args.url, tmpFile)

# read the original json template
with open(wmcorePath + fname) as fo:
Expand Down

0 comments on commit 85d6d42

Please sign in to comment.