[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: maintenance: fixup check for "file very very big in /var/log"

Mattia Rizzolo gitlab at salsa.debian.org
Mon Mar 25 18:07:22 GMT 2019


Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
38b9e7fb by Mattia Rizzolo at 2019-03-25T18:05:41Z
reproducible Debian: maintenance: fixup check for "file very very big in /var/log"

    if $() ; then
doesn't really mean anything, as it tries to execute the output of $().

Instead, check for empty output of find (ignoring EPERM).

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


2 changed files:

- bin/reproducible_maintenance.sh
- deploy_jdn


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -68,7 +68,7 @@ if [ ! -z "$TOOBIG" ] ; then
 	echo "$TOOBIG"
 	echo
 	DIRTY=true
-	if $(find /var/log -size +32G /dev/null 2>&1) ; then
+	if [ -n "$(find /var/log -size +32G 2> >(grep -v 'Permission denied'))" ] ; then
 		echo "$(date -u) - Error, more than 32gb is just wrong..."
 		exit 1
 	fi


=====================================
deploy_jdn
=====================================
@@ -131,6 +131,7 @@ elif [ "$1" = "" ] ; then
 	echo -n "Running j.d.n.git updates on ${HOSTS[@]} now"
 elif [ "$1" = "jenkins" ] ; then
 	HOSTS=(root at jenkins.debian.net)
+	HOSTS=()
 	shift
 	for i in "$@" ; do
 		case "$i" in



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/38b9e7fb30d53182cb6656af8f8e402b0469bf8b

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/38b9e7fb30d53182cb6656af8f8e402b0469bf8b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190325/9ce23a11/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list