clear scons cache dirs older than a day in CI

old-commit-hash: 897548c7ef
commatwo_master
Adeeb Shihadeh 5 years ago
parent ef00c30f3a
commit 76302a54dd
  1. 3
      selfdrive/test/phone_ci.py

@ -48,6 +48,9 @@ def run_on_phone(test_cmd):
conn.send(f"export {k}='{v}'\n")
conn.send("export CI=1\n")
# clear scons cache dirs that haven't been written to in one day
conn.send("cd /tmp && find -name 'scons_cache_*' -type d -maxdepth 1 -mtime 1 -exec rm -rf '{}' \\;\n")
# set up environment
conn.send(f"cd {SOURCE_DIR}\n")
conn.send("git reset --hard\n")

Loading…
Cancel
Save