selftest: Only iterate the .sh files for test execution
Previously, all files within $TESTCASEDIR/$test_case are regarded as shell script files for testing. However there might be config files under the directory. So let's only iterate the .sh files. Signed-off-by: Tao Liu <ltao@redhat.com> Reviewed-by: Philipp Rudo <prudo@redhat.com>
This commit is contained in:
parent
f11721077a
commit
68978f9241
@ -85,8 +85,7 @@ for test_case in $testcases; do
|
||||
results[$test_case]="<Test Skipped>"
|
||||
|
||||
testdir=$TESTCASEDIR/$test_case
|
||||
script_num=$(ls -1 $testdir | wc -l)
|
||||
scripts=$(ls -r -1 $testdir | tr '\n' ' ')
|
||||
scripts=$(ls -r -1 $testdir | egrep "\.sh$" | tr '\n' ' ')
|
||||
test_outputs=""
|
||||
read main_script aux_script <<< "$scripts"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user