From 897548c7efcbcc1e00740ef262449c06f9c3228f Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 10 Jul 2020 17:18:52 -0700 Subject: [PATCH] clear scons cache dirs older than a day in CI --- selfdrive/test/phone_ci.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/test/phone_ci.py b/selfdrive/test/phone_ci.py index b002547196..a3a966ce2f 100755 --- a/selfdrive/test/phone_ci.py +++ b/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")