[LTP] [PATCH 1/2] metadata/test: Remove bashism

Joerg Vehlow lkml@jv-coder.de
Fri Dec 3 06:57:06 CET 2021


From: Joerg Vehlow <joerg.vehlow@aox-tech.de>

Signed-off-by: Joerg Vehlow <joerg.vehlow@aox-tech.de>
---
 metadata/tests/test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metadata/tests/test.sh b/metadata/tests/test.sh
index c11f0e496..475d721df 100755
--- a/metadata/tests/test.sh
+++ b/metadata/tests/test.sh
@@ -4,7 +4,7 @@ fail=0
 
 for i in *.c; do
 	../metaparse $i > tmp.json
-	if ! diff tmp.json $i.json &> /dev/null; then
+	if ! diff tmp.json $i.json >/dev/null 2>&1; then
 		echo "***"
 		echo "$i output differs!"
 		diff -u tmp.json $i.json
-- 
2.25.1



More information about the ltp mailing list