refactor: use grep -E instead of egrep

This commit is contained in:
kxxt
2022-09-21 19:19:09 +08:00
parent 0615668a08
commit c79a9bce1a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ if [ "$QEMU" != "" ]; then
-net user \
-nographic \
-vga none 2>&1 | tee "${CARGO_TARGET_DIR}/out.log"
exec egrep "^(PASSED)|(test result: ok)" "${CARGO_TARGET_DIR}/out.log"
exec grep -E "^(PASSED)|(test result: ok)" "${CARGO_TARGET_DIR}/out.log"
fi
if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
+2 -2
View File
@@ -20,6 +20,6 @@ timeout 30s qemu-system-$arch \
-append init=/run_prog.sh > output || true
# remove kernel messages
tr -d '\r' < output | egrep -v '^\['
tr -d '\r' < output | grep -Ev '^\['
egrep "(PASSED)|(test result: ok)" output > /dev/null
grep -E "(PASSED)|(test result: ok)" output > /dev/null