Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
pbot: use full path for binaries executed with sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
lewurm committed Aug 10, 2015
1 parent dfc3a1e commit 8f705f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions performancebot/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _mk_benchmarker(slavename, platform, config_name):
factory.upload_benchmarker()

tmp_dir = lambda e: 'tmp' + str(e)
factory.addStep(ShellCommand(name='rm temp dir', command=['sudo', 'rm', '-rf', tmp_dir('')]))
factory.addStep(ShellCommand(name='rm temp dir', command=['sudo', '/bin/rm', '-rf', tmp_dir('')]))
factory.addStep(ShellCommand(name='mkdir temp dir', command=['mkdir', '-p', tmp_dir('')]))
# get URLs of jenkins build artifacts
factory.addStep(
Expand All @@ -205,7 +205,7 @@ def _mk_benchmarker(slavename, platform, config_name):

# install debian packages
install_root = lambda e: 'installation' + str(e)
factory.addStep(ShellCommand(name='envprep0', command=['sudo', 'rm', '-rf', install_root('')]))
factory.addStep(ShellCommand(name='envprep0', command=['sudo', '/bin/rm', '-rf', install_root('')]))
factory.addStep(ShellCommand(name='envprep1', command=['mkdir', '-p', install_root('/var/lib/')]))
factory.addStep(ShellCommand(name='envprep2', command=['sudo', '/bin/cp', '-a', '/var/lib/dpkg', install_root('/var/lib/')]))
for package in ['common.deb', 'assemblies.deb', 'mono.deb']:
Expand Down

0 comments on commit 8f705f8

Please sign in to comment.