clear scons cache dirs older than a day in CI

old-commit-hash: 897548c7efcbcc1e00740ef262449c06f9c3228f
This commit is contained in:
Adeeb Shihadeh
2020-07-10 17:18:52 -07:00
parent ef00c30f3a
commit 76302a54dd
+3
View File
@@ -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")