From 62fc8cef4532570f07c4c5aa522f5a31f5b99d3a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 7 Apr 2007 23:16:11 -0400 Subject: [PATCH] Make the test_script ignore and skip empty test directories When patching and unpatching quilt files, empty directories get left behind in the tests/ directory. Ignore them to avoid false test failures. Signed-off-by: "Theodore Ts'o" --- tests/ChangeLog | 4 ++++ tests/test_script.in | 3 +++ 2 files changed, 7 insertions(+) diff --git a/tests/ChangeLog b/tests/ChangeLog index 98e1b75..b867512 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2007-04-07 Theodore Tso + + * test_script.in: Skip completely empty directories + 2007-04-01 Theodore Tso * f_dir_bad_mode: New test case. diff --git a/tests/test_script.in b/tests/test_script.in index b8cecb3..9dbbaf8 100644 --- a/tests/test_script.in +++ b/tests/test_script.in @@ -41,6 +41,9 @@ do echo "The test '$test_name' does not exist." continue; fi + if [ -z "`ls $test_dir`" ]; then + continue + fi if [ -f $test_dir/name ]; then test_description=`cat $test_dir/name` printf "%s: %s: " "$test_name" "$test_description" -- 1.8.3.1