From f8d4883f520c1dcbfd000b37c14607f87ae65932 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 19 Mar 2018 17:44:12 +0800 Subject: [PATCH] Grep command error Error[1] when executing grep command. add sudo for the grep commands when it is currently enabled. [1]:http://logs.openstack.org/63/554163/1/check/puppet-openstack-integration-4-scenario002-tempest-ubuntu-xenial/dd454e9/job-output.txt.gz#_2018-03-19_08_44_16_398090 Change-Id: I5e5e89a4d691fc3890fbc863caa1fc87e42e7d87 Closes-Bug: #1756832 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index b7d97eaaa..099101540 100644 --- a/functions +++ b/functions @@ -195,5 +195,5 @@ function timestamp_puppet_log() { } function catch_puppet_failures() { - grep -wiE '(Error|\(err\))' ${WORKSPACE}/puppet.log + $SUDO grep -wiE '(Error|\(err\))' ${WORKSPACE}/puppet.log }