Skip to content
Snippets Groups Projects
Commit 8d9ffaeb authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Update envsetup at tester init (refs #20902).

parent 82359003
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,8 @@ class Tester(): ...@@ -78,6 +78,8 @@ class Tester():
if whoami != 'root' and not debug: if whoami != 'root' and not debug:
log('This script should be run as root user.') log('This script should be run as root user.')
sys.exit(1) sys.exit(1)
# Update envsetup files
subprocess.call(['python3', 'update_envsetup.py'])
# Load conf # Load conf
conf = utils.load_conf() conf = utils.load_conf()
if not conf: if not conf:
......
...@@ -9,7 +9,7 @@ if __name__ == '__main__': ...@@ -9,7 +9,7 @@ if __name__ == '__main__':
os.chdir(os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))) os.chdir(os.path.dirname(os.path.abspath(os.path.expanduser(__file__))))
sys.stdout.write('Updating envsetup: ') sys.stdout.write('Updating envsetup: ')
sys.stdout.flush() sys.stdout.flush()
subprocess.check_call('git pull', shell=True)
subprocess.call('find . -name *.pyc -type f -delete', shell=True) subprocess.call('find . -name *.pyc -type f -delete', shell=True)
subprocess.call('find . -name __pycache__ -type d -delete', shell=True) subprocess.call('find . -name __pycache__ -type d -delete', shell=True)
subprocess.call('git pull', shell=True)
subprocess.call('find . -type d -empty -delete', shell=True) subprocess.call('find . -type d -empty -delete', shell=True)
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