Since version 3.11 egrep emits the following warning to stderr on startup:
egrep: warning: egrep is obsolescent; using grep -E
This makes the tests fail (though that seems to depend on BATS version)
so replace egrep with grep -E as suggested.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
check_prog bats
check_prog modprobe
check_prog timeout
-check_prog egrep
+check_prog grep
# Check if we're running a kernel at the required version or later
check_kernel $MIN_KERNEL_VERSION
ls $BANKPATH/line* > /dev/null 2>&1
if [ "$?" = "0" ]
then
- for LINE in $(find $BANKPATH/ | egrep "line[0-9]+$")
+ for LINE in $(find $BANKPATH/ | grep -E "line[0-9]+$")
do
test -e $LINE/hog && rmdir $LINE/hog
rmdir $LINE