summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2023-01-01 18:41:42 +0200
committerTom Rini <trini@konsulko.com>2023-01-11 15:02:24 -0500
commitfe482b886d7ffd65cb06ec4b4b017440460e42c0 (patch)
tree14800dbf93afcb0ea6a187e88e08d9666b692c1f /test
parent89d47b33b54715a220cdf64b3faf3a56dc6c7af7 (diff)
Use `grep -E` or plain `grep` instead of `egrep`
`egrep` has been deprecated in GNU grep since 2007, and since 3.8 it emits obsolescence warnings: https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1 Acked-by: Dhruva Gole <d-gole@ti.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs/fs-test.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/fs/fs-test.sh b/test/fs/fs-test.sh
index b87748106c..dec2634de3 100755
--- a/test/fs/fs-test.sh
+++ b/test/fs/fs-test.sh
@@ -462,22 +462,22 @@ function check_results() {
FAIL=0
# Check if the ls is showing correct results for 2.5 gb file
- grep -A7 "Test Case 1 " "$1" | egrep -iq "2621440000 *$4"
+ grep -A7 "Test Case 1 " "$1" | grep -Eiq "2621440000 *$4"
pass_fail "TC1: ls of $4"
# Check if the ls is showing correct results for 1 mb file
- grep -A7 "Test Case 1 " "$1" | egrep -iq "1048576 *$3"
+ grep -A7 "Test Case 1 " "$1" | grep -Eiq "1048576 *$3"
pass_fail "TC1: ls of $3"
# Check size command on 1MB.file
- egrep -A3 "Test Case 2a " "$1" | grep -q "filesize=100000"
+ grep -A3 "Test Case 2a " "$1" | grep -q "filesize=100000"
pass_fail "TC2: size of $3"
# Check size command on 1MB.file via a path using '..'
- egrep -A3 "Test Case 2b " "$1" | grep -q "filesize=100000"
+ grep -A3 "Test Case 2b " "$1" | grep -q "filesize=100000"
pass_fail "TC2: size of $3 via a path using '..'"
# Check size command on 2.5GB.file
- egrep -A3 "Test Case 3 " "$1" | grep -q "filesize=9c400000"
+ grep -A3 "Test Case 3 " "$1" | grep -q "filesize=9c400000"
pass_fail "TC3: size of $4"
# Check read full mb of 1MB.file