summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-10-18 19:04:20 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 22:02:45 -0700
commit8e0871196c916be60a9d0327ce8483c4f9763c17 (patch)
treef76063a6ef4458bb474fd180365da0856fd3aafc /test
parent74d2a1d53024d10145dc1e9e5e6124d9d14e9fbe (diff)
[PATCH] fix up the wait_for_sysfs_test script a bit.
We also emit the same things the -mm tree does now, so to make that easier to test for.
Diffstat (limited to 'test')
-rw-r--r--test/wait_for_sysfs_test.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/wait_for_sysfs_test.sh b/test/wait_for_sysfs_test.sh
index 659d99a9fe..9b80a42271 100644
--- a/test/wait_for_sysfs_test.sh
+++ b/test/wait_for_sysfs_test.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
#
# Check for missing binaries (stale symlinks should not happen)
@@ -25,13 +25,17 @@ run_udev () {
done
# all other device classes
for i in ${SYSFS_DIR}/class/*; do
- for j in $i/*; do
-# if [ -f $j/dev ]; then
- export DEVPATH=${j#${SYSFS_DIR}}
- CLASS=`echo ${i#${SYSFS_DIR}} | \
- cut --delimiter='/' --fields=3-`
- $UDEV_BIN $CLASS
-# fi
+ # try adding empty classes, just to test stuff...
+ export DEVPATH=${i#${SYSFS_DIR}}
+ CLASS=`echo ${i#${SYSFS_DIR}} | cut --delimiter='/' --fields=3-`
+ $UDEV_BIN $CLASS
+
+ for j in `ls $i/`; do
+ x=$i/$j
+ export DEVPATH=${x#${SYSFS_DIR}}
+ CLASS=`echo ${i#${SYSFS_DIR}} | \
+ cut --delimiter='/' --fields=3-`
+ $UDEV_BIN $CLASS
done
done
}