Also replace "==" with "=" in rcutorture test.
Signed-off-by: Alexey Kodanev <[email protected]>
---
testcases/kernel/device-drivers/rcu/rcu_torture.sh | 4 ++--
.../ftrace_stress_test/ftrace_stress_test.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/device-drivers/rcu/rcu_torture.sh
b/testcases/kernel/device-drivers/rcu/rcu_torture.sh
index 0ead720..65c4fe0 100755
--- a/testcases/kernel/device-drivers/rcu/rcu_torture.sh
+++ b/testcases/kernel/device-drivers/rcu/rcu_torture.sh
@@ -66,7 +66,7 @@ modprobe rcutorture > /dev/null 2>&1 || \
tst_brkm TCONF "Test requires rcutorture module"
rmmod rcutorture > /dev/null 2>&1
-trap cleanup SIGINT
+trap cleanup INT
rcu_type="rcu rcu_sync rcu_expedited rcu_bh rcu_bh_sync rcu_bh_expedited \
srcu srcu_sync srcu_expedited srcu_raw srcu_raw_sync sched \
@@ -95,7 +95,7 @@ for type in $rcu_type; do
# check module status in dmesg
result_str=`dmesg | sed -nE '$s/.*End of test: ([A-Z]+):.*/\1/p'`
- if [ "$result_str" == "SUCCESS" ]; then
+ if [ "$result_str" = "SUCCESS" ]; then
tst_resm TPASS "$type: completed"
else
tst_resm TFAIL "$type: $result_str, see dmesg"
diff --git a/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress_test.sh
b/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress_test.sh
index b6a44d8..6a111e9 100755
--- a/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress_test.sh
+++ b/testcases/kernel/tracing/ftrace_stress_test/ftrace_stress_test.sh
@@ -160,7 +160,7 @@ test_wait()
}
}
-trap clean_up_exit SIGINT
+trap clean_up_exit INT
# Should be run by root user
if [ `id -ru` != 0 ]; then
--
1.7.1
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list