summaryrefslogtreecommitdiff
path: root/tests/ubi-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ubi-tests')
-rwxr-xr-xtests/ubi-tests/stress-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ubi-tests/stress-test.sh b/tests/ubi-tests/stress-test.sh
index ad9a2af..c92525e 100755
--- a/tests/ubi-tests/stress-test.sh
+++ b/tests/ubi-tests/stress-test.sh
@@ -62,9 +62,9 @@ fi
# Make sure neither mtdram nor nandsim are used
nandsim_patt="NAND simulator"
mtdram_patt="mtdram test device"
-! cat /proc/mtd | grep -q "$nandsim_patt" ||
+! grep -q "$nandsim_patt" /proc/mtd ||
fatal "the nandsim driver is already used"
-! cat /proc/mtd | grep -q "$mtdram_patt" ||
+! grep -q "$mtdram_patt" /proc/mtd ||
fatal "the mtdram driver is already used"
rmmod ubi >/dev/null 2>&1 ||: