summaryrefslogtreecommitdiffstats
path: root/tools/valgrind
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 15:30:29 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 15:30:29 +0000
commitd53faa3d7bfe36852a411bfd10175eceaacff822 (patch)
treed1a594c58599765adb8cac4e67709e2d512441c7 /tools/valgrind
parentb8f8723b5e2a7da9fdd5e22f4f13c4f0f267624c (diff)
downloadchromium_src-d53faa3d7bfe36852a411bfd10175eceaacff822.zip
chromium_src-d53faa3d7bfe36852a411bfd10175eceaacff822.tar.gz
chromium_src-d53faa3d7bfe36852a411bfd10175eceaacff822.tar.bz2
Valgrind runner: cleanup /tmp from stale Valgrind entries
They might be there due to interrupted chrome_tests.py executions etc Review URL: https://chromiumcodereview.appspot.com/9487007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind')
-rwxr-xr-xtools/valgrind/chrome_tests.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/valgrind/chrome_tests.sh b/tools/valgrind/chrome_tests.sh
index 73b7a1e..e8ffc9ba 100755
--- a/tools/valgrind/chrome_tests.sh
+++ b/tools/valgrind/chrome_tests.sh
@@ -63,6 +63,16 @@ then
# Valgrind binary.
export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind"
export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind"
+
+ # Clean up some /tmp directories that might be stale due to interrupted
+ # chrome_tests.py execution.
+ # FYI:
+ # -mtime +1 <- only print files modified more than 24h ago,
+ # -print0/-0 are needed to handle possible newlines in the filenames.
+ echo "Cleanup /tmp from Valgrind stuff"
+ find /tmp -maxdepth 1 \(\
+ -name "vgdb-pipe-*" -or -name "vg_logs_*" -or -name "valgrind.*" \
+ \) -mtime +1 -print0 | xargs -0 rm -rf
fi
if [ "$NEEDS_DRMEMORY" == "1" ]