cleanup startup params (#31068)

old-commit-hash: b4ebba384b
chrysler-long2
Adeeb Shihadeh 1 year ago committed by GitHub
parent 4393de267a
commit e3cb318151
  1. 1
      Jenkinsfile
  2. 8
      selfdrive/manager/helpers.py

1
Jenkinsfile vendored

@ -35,6 +35,7 @@ source ~/.bash_profile
if [ -f /TICI ]; then if [ -f /TICI ]; then
source /etc/profile source /etc/profile
rm -rf /tmp/tmp*
rm -rf ~/.commacache rm -rf ~/.commacache
if ! systemctl is-active --quiet systemd-resolved; then if ! systemctl is-active --quiet systemd-resolved; then

@ -54,9 +54,11 @@ def save_bootlog():
tmp = tempfile.mkdtemp() tmp = tempfile.mkdtemp()
shutil.copytree(Params().get_param_path() + "/..", tmp, dirs_exist_ok=True) shutil.copytree(Params().get_param_path() + "/..", tmp, dirs_exist_ok=True)
def fn(tmpdir):
env = os.environ.copy() env = os.environ.copy()
env['PARAMS_ROOT'] = tmp env['PARAMS_ROOT'] = tmpdir
subprocess.call("./bootlog", cwd=os.path.join(BASEDIR, "system/loggerd"), env=env)
t = threading.Thread(target=subprocess.call, args=("./bootlog", ), kwargs={'cwd': os.path.join(BASEDIR, "system/loggerd"), 'env': env}) shutil.rmtree(tmpdir)
t = threading.Thread(target=fn, args=(tmp, ))
t.daemon = True t.daemon = True
t.start() t.start()

Loading…
Cancel
Save