Commit 632617f
committed
postinst: avoid false positives when scanning logs for errors
Replace deprecated egrep usage with grep -E and improve the log
matching pattern to avoid false positives.
Previously, the pattern 'warn|error|fatal|fail' matched substrings
such as 'str_error_r.o' and triggered failures due to the egrep
deprecation warning.
Updated the command to use:
grep -Eiw 'warn(ing)?|error|fatal|fail'
This ensures only whole words are matched and includes both 'warn'
and 'warning', reducing incorrect test failures.
Signed-off-by: AshwinUjjwal <ashwinujjwal.bharti@emerson.com>1 parent b9b2fe0 commit 632617f
File tree
1 file changed
+1
-1
lines changed- recipes-devtools/run-postinsts/files
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments