Mholloway has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/386097 )

Change subject: Prevent accumulation of screenshots in the host's /tmp directory
......................................................................

Prevent accumulation of screenshots in the host's /tmp directory

Recently, for the second time in three months, the Android periodic
test server ran out of disk space due to an accumulation of old
screenshots in the /tmp directory.

This assigns TMPDIR a folder in the project directory so that it will be
cleared on each run.

Change-Id: Ic4b8a63934d8b79e45f1605b2f0881f7d7089f59
---
M scripts/apps-android-wikipedia-periodic-test
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia 
refs/changes/97/386097/1

diff --git a/scripts/apps-android-wikipedia-periodic-test 
b/scripts/apps-android-wikipedia-periodic-test
index 56aa758..657a3a6 100755
--- a/scripts/apps-android-wikipedia-periodic-test
+++ b/scripts/apps-android-wikipedia-periodic-test
@@ -1,6 +1,8 @@
 #!/usr/bin/env bash
 set -euo pipefail
 
+mkdir tmp && export TMPDIR="$PWD/tmp"
+
 ./gradlew clean checkstyle lintAlphaRelease testAllAlphaRelease
 
 scripts/diff-screenshots
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/386097
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4b8a63934d8b79e45f1605b2f0881f7d7089f59
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Mholloway <mhollo...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to