summaryrefslogtreecommitdiff
path: root/io-tool
diff options
context:
space:
mode:
Diffstat (limited to 'io-tool')
-rw-r--r--io-tool/mts-io-sysfs-inc.sh2
-rwxr-xr-xio-tool/sysfs-tests16
2 files changed, 12 insertions, 6 deletions
diff --git a/io-tool/mts-io-sysfs-inc.sh b/io-tool/mts-io-sysfs-inc.sh
index 7c24353..c4a48db 100644
--- a/io-tool/mts-io-sysfs-inc.sh
+++ b/io-tool/mts-io-sysfs-inc.sh
@@ -26,7 +26,7 @@ VERBOSE=false
PLATFORM_NAME=mtcdp
SYSFS_PLATFORM_DIR=/sys/devices/platform/${PLATFORM_NAME}
-MTS_IO_CONTROLS_STATUS_LED=true
+MTS_IO_CONTROLS_STATUS_LED=false
MTS_IO_CONTROLS_LS_LED=false
LEDS_GPIO_DIR=/sys/devices/platform/leds-gpio/leds
diff --git a/io-tool/sysfs-tests b/io-tool/sysfs-tests
index cb65c57..7b07955 100755
--- a/io-tool/sysfs-tests
+++ b/io-tool/sysfs-tests
@@ -83,11 +83,13 @@ show_assert_in_set() {
for value in "$@"; do
if [ "${value}" = "${actual_value}" ]; then
- log_info "${name} is '${value}'"
+ log_info "${name} is '${actual_value}'"
return
fi
done
+ log_info "${name} is '${actual_value}'"
+
exit 1
}
@@ -100,6 +102,14 @@ modprobe mts-io
sleep 2
+show_assert_in_set board-temperature {30..40}
+store board-temperature 1000
+show_assert_in_set board-temperature {30..40}
+
+#for ((i = 0; i < 1000; i++)); do
+# show_assert_in_set board-temperature {30..40}
+#done
+
show_assert radio-reset 1
log_info "resetting radio..."
store radio-reset 0
@@ -171,10 +181,6 @@ show_assert reset 0
store reset 1
show_assert reset 0
-show_assert_in_set board-temperature {30..40}
-store board-temperature 1000
-show_assert_in_set board-temperature {30..40}
-
show_assert reset-monitor "-1 10 12"
exit 0