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
This commit is contained in:
ZhongShengping 2018-03-19 17:44:12 +08:00
parent ebfd68412d
commit f8d4883f52

View File

@ -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
}