Skip to content

Commit

Permalink
use sys.executable rather than 'python' when testing generate_softwar…
Browse files Browse the repository at this point in the history
…e_list.py script
  • Loading branch information
boegel committed Oct 8, 2015
1 parent 8fcfac5 commit 4bce8db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/framework/scripts.py
Expand Up @@ -30,6 +30,7 @@
import os
import re
import shutil
import sys
import tempfile
from test.framework.utilities import EnhancedTestCase
from unittest import TestLoader, main
Expand Down Expand Up @@ -77,7 +78,7 @@ def test_generate_software_list(self):
for ec_file in files:
shutil.copy2(os.path.join(root, ec_file), tmpdir)

cmd = "python %s --local --quiet --path %s" % (script, tmpdir)
cmd = "%s %s --local --quiet --path %s" % (sys.executable, script, tmpdir)
out, ec = run_cmd(cmd, simple=False)

# make sure output is kind of what we expect it to be
Expand Down

0 comments on commit 4bce8db

Please sign in to comment.