aboutsummaryrefslogtreecommitdiff
path: root/testcases/commands
diff options
context:
space:
mode:
authorJan Stancek <jstancek@redhat.com>2014-07-23 09:34:14 +0200
committerJan Stancek <jstancek@redhat.com>2014-07-23 09:34:14 +0200
commita36f50cba6bfa12bb41a3057bb8321d10033344d (patch)
tree7e0db927d55e2ea3330785bf81ee88792e4cc1cd /testcases/commands
parent254cba6e8c2d0f3f851f7a16b9a0659987c3d956 (diff)
file_test: make also "linux" a valid match
The output of file for vmlinu* varies based on architecture and presumably also its own version. Make this testcase more tolarant by matching also "linux". This fixes testcase on s390 for at least file-5.11 up to file-5.19. Signed-off-by: Jan Stancek <jstancek@redhat.com>
Diffstat (limited to 'testcases/commands')
-rwxr-xr-xtestcases/commands/ade/file/file_test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/testcases/commands/ade/file/file_test.sh b/testcases/commands/ade/file/file_test.sh
index 9914ebe7e..101a8cca8 100755
--- a/testcases/commands/ade/file/file_test.sh
+++ b/testcases/commands/ade/file/file_test.sh
@@ -613,6 +613,7 @@ then
#####
MATCHED=""
grep -iq "$TEST_ARCH" $LTPTMP/file.out && MATCHED="y"
+ grep -iq "linux" $LTPTMP/file.out && MATCHED="y"
grep -iq "kernel" $LTPTMP/file.out && MATCHED="y"
grep -iq "compressed data" $LTPTMP/file.out && MATCHED="y"
grep -iq "x86 boot sector" $LTPTMP/file.out && MATCHED="y"