File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,16 @@ popd > /dev/null
14
14
15
15
# OK/NG decision
16
16
rc=0
17
- [[ $ exit_code != 0 ]] && rc=1
17
+ (( exit_code != 0 )) && rc=1
18
18
19
19
# Check if kmsg is empty
20
20
$MCKINSTALL /sbin/ihkosctl 0 kmsg > $recorddir /kmsg.log
21
21
[[ " $( cat $recorddir /kmsg.log | wc -l) " != 1 ]] && echo " $( basename $0 ) : WARNING: kmsg isn't empty."
22
22
23
23
# Check if process/thread structs remain
24
- ! $AUTOTEST_HOME /bin/getnumprocess.sh && echo " $( basename $0 ) : INFO: $nprocs process(es) remaining" && rc=1
25
- ! $AUTOTEST_HOME /bin/getnumthread.sh && echo " $( basename $0 ) : INFO: $nprocs thread(s) remaining" && rc=1
24
+ nproc=$( $AUTOTEST_HOME /bin/getnumprocess.sh)
25
+ (( nproc != 0 )) && echo " $( basename $0 ) : INFO: $nproc process(es) remaining" && rc=1
26
+ nthr=$( $AUTOTEST_HOME /bin/getnumthread.sh)
27
+ (( nthr != 0 )) && echo " $( basename $0 ) : INFO: $nthr thread(s) remaining" && rc=1
26
28
27
29
exit $rc
You can’t perform that action at this time.
0 commit comments