summaryrefslogtreecommitdiff
path: root/io-tool/sysfs-tests
diff options
context:
space:
mode:
authorJames Maki <jmaki@multitech.com>2010-05-03 18:30:46 -0500
committerJames Maki <jmaki@multitech.com>2010-05-03 18:30:46 -0500
commitc015b4cd3e6acf0b26d8d88ef023b089e53bb0f6 (patch)
tree3df4ab0f8e66e6ea4940f7aec9147c3423004f06 /io-tool/sysfs-tests
parent070de5329a87e049896073d1bfbae90368505ce9 (diff)
downloadmts-io-c015b4cd3e6acf0b26d8d88ef023b089e53bb0f6.tar.gz
mts-io-c015b4cd3e6acf0b26d8d88ef023b089e53bb0f6.tar.bz2
mts-io-c015b4cd3e6acf0b26d8d88ef023b089e53bb0f6.zip
fix broken sysfs test
Diffstat (limited to 'io-tool/sysfs-tests')
-rwxr-xr-xio-tool/sysfs-tests16
1 files changed, 9 insertions, 7 deletions
diff --git a/io-tool/sysfs-tests b/io-tool/sysfs-tests
index 7b07955..3c55a3d 100755
--- a/io-tool/sysfs-tests
+++ b/io-tool/sysfs-tests
@@ -100,7 +100,7 @@ echo none > /sys/devices/platform/leds-gpio/leds/status/trigger
modprobe -r mts-io
modprobe mts-io
-sleep 2
+sleep 3
show_assert_in_set board-temperature {30..40}
store board-temperature 1000
@@ -169,13 +169,15 @@ show_assert led-sdk-b 0
store_assert led-sdk-b 1
store_assert led-sdk-b 0
-show_assert led-status 0
-store_assert led-status 1
-store_assert led-status 0
+if [ "${MTS_IO_CONTROLS_STATUS_LED}" = "true" ]; then
+ show_assert led-status 0
+ store_assert led-status 1
+ store_assert led-status 0
-show_assert led-sdk-a 0
-store_assert led-sdk-a 1
-store_assert led-sdk-a 0
+ show_assert led-sdk-a 0
+ store_assert led-sdk-a 1
+ store_assert led-sdk-a 0
+fi
show_assert reset 0
store reset 1