Skip to content

Commit c433f10

Browse files
authored
Merge pull request #2113 from batrick/egrep
teuthology/task: use grep switch instead of egrep
2 parents d0db62d + cd503fa commit c433f10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

teuthology/task/internal/syslog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def syslog(ctx, config):
106106
log.debug('Checking %s', rem.name)
107107
stdout = rem.sh(
108108
[
109-
'egrep', '--binary-files=text',
109+
'grep', '-E', '--binary-files=text',
110110
'\\bBUG\\b|\\bINFO\\b|\\bDEADLOCK\\b',
111111
run.Raw(f'{archive_dir}/syslog/kern.log'),
112112
run.Raw('|'),
@@ -143,11 +143,11 @@ def syslog(ctx, config):
143143
run.Raw('|'),
144144
'grep', '-v', 'container-storage-setup: INFO: Volume group backing root filesystem could not be determined', # noqa
145145
run.Raw('|'),
146-
'egrep', '-v', '\\bsalt-master\\b|\\bsalt-minion\\b|\\bsalt-api\\b',
146+
'grep', '-E', '-v', '\\bsalt-master\\b|\\bsalt-minion\\b|\\bsalt-api\\b',
147147
run.Raw('|'),
148148
'grep', '-v', 'ceph-crash',
149149
run.Raw('|'),
150-
'egrep', '-v', '\\btcmu-runner\\b.*\\bINFO\\b',
150+
'grep', '-E', '-v', '\\btcmu-runner\\b.*\\bINFO\\b',
151151
run.Raw('|'),
152152
'head', '-n', '1',
153153
],

teuthology/task/kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def install_and_reboot(ctx, need_install, config):
560560
# complex this will totally break.
561561

562562
kernel_entries = role_remote.sh([
563-
'egrep',
563+
'grep', '-E',
564564
'(submenu|menuentry.*' + kernel_title + ').*{',
565565
'/boot/grub/grub.cfg'
566566
]).split('\n')

0 commit comments

Comments
 (0)