From 2d6e977b2ebfc0b5cf7fe232c57c3ce650c49105 Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Wed, 27 May 2015 17:58:24 +0000 Subject: [PATCH] Use tar -t instead of -l because centos 6 Centos 6 tar appears to only support unix style tar args. Use tar -t when we inspect test builds. Change-Id: I91bf321cf6700d59956779a60f613eddd2856024 --- tests/test_functions.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_functions.bash b/tests/test_functions.bash index 24faaee3..810daba2 100644 --- a/tests/test_functions.bash +++ b/tests/test_functions.bash @@ -50,7 +50,7 @@ function run_element_test() { echo "No image $dest_dir/image.tar found!" exit 1 else - if tar -l $dest_dir/image.tar | grep -q /tmp/dib-test-should-fail; then + if tar -t $dest_dir/image.tar | grep -q /tmp/dib-test-should-fail; then echo "Error: Element: $element, test-element $test_element should have failed, but passed." exit 1 else