summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2009-04-29 15:51:32 +0200
committerKarel Zak <kzak@redhat.com>2009-04-29 15:51:32 +0200
commit396b8c0f9fa583b9236aadc78673ce8daa6d555b (patch)
treea3f957962d7a43bcb70e4affb88495a7b9fe8838
parent2c59ce79907245d7db29dfc827ba2b39dcd9b7ff (diff)
downloadutil-linux-old-396b8c0f9fa583b9236aadc78673ce8daa6d555b.tar.gz
tests: fix -regex in run.sh
Reported-by: Scott James Remnant <scott@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
-rwxr-xr-xtests/run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index f4a6e7bf..b99f8761 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -17,11 +17,11 @@
#
TS_TOPDIR=$(cd $(dirname $0) && pwd)
-comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex "[^\.~]*" | sort)
+comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex ".*/[^\.~]*" | sort)
if [ -n "$1" ]; then
if [ -d "$TS_TOPDIR/ts/$1" ]; then
- comps=$(find $TS_TOPDIR/ts/$1 -type f -perm /a+x -regex "[^\.~]*" | sort)
+ comps=$(find $TS_TOPDIR/ts/$1 -type f -perm /a+x -regex ".*/[^\.~]*" | sort)
else
echo
echo "usage: $0 [<component>]"