Skip to content

Commit

Permalink
Tools: autotest.py: run build_binaries.py instead of build_binaries.sh
Browse files Browse the repository at this point in the history
Note we still copy the script sideways.  This is probably not
required for a python script.
  • Loading branch information
peterbarker committed Sep 14, 2017
1 parent 0925751 commit a48a48a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tools/autotest/autotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ def build_all():


def build_binaries():
"""Run the build_binaries.sh script."""
print("Running build_binaries.sh")
"""Run the build_binaries.py script."""
print("Running build_binaries.py")
# copy the script as it changes git branch, which can change the script while running
orig = util.reltopdir('Tools/scripts/build_binaries.sh')
copy = util.reltopdir('./build_binaries.sh')
orig = util.reltopdir('Tools/scripts/build_binaries.py')
copy = util.reltopdir('./build_binaries.py')
shutil.copy2(orig, copy)

if util.run_cmd(copy, directory=util.reltopdir('.')) != 0:
print("Failed build_binaries.sh")
print("Failed build_binaries.py")
return False
return True

Expand Down

0 comments on commit a48a48a

Please sign in to comment.