Lines Matching refs:rc
91 local rc=0
94 rc=$?
100 result=${result:-$rc}
106 rc=$?
107 if [ $rc -ne 0 ]; then
108 result=${result:-$rc}
111 return $rc
116 rc=$?
117 if [ $rc -ne 0 ]; then
118 result=${result:-$rc}
122 return $rc
149 local rc=0
153 rc=$cwd_result
156 rc=$umnt_result
162 return $rc
257 local rc=0
261 rc=1
266 rc=2
271 rc=3
276 rc=4
279 [ $rc -ne 0 ] && {
280 result=${result:-$rc}
285 return $rc
314 local rc=$?
316 [ $rc -eq 0 -a $nlines -eq 0 ] && return 0
317 rc=$?
318 result=${result:-$rc}
321 return $rc
330 local rc=$?
331 result=${result:-$rc}
334 return $rc
343 local rc=1 # $? == 0 is an error in this case
344 result=${result:-$rc}
347 return $rc
397 local rc=$?
399 [ $rc -eq 0 -a "$ps_state" == "${expected_state}" ] && return 0
400 rc=$?
401 result=${result:-$rc}
403 return $rc
414 local rc=$?
416 [ $rc -eq 0 -a "$ps_state" != "${expected_state}" ] && return 0
417 rc=$?
418 result=${result:-$rc}
420 return $rc
431 local rc=$?
433 [ $rc -eq 0 -a "$ps_state" != "D" ] && return 0
434 rc=$?
435 result=${result:-$rc}
437 return $rc
444 local rc=$?
446 [ $rc -eq 0 -a "$ps_state" == "D" -o "$ps_state" == "T" ] && return 0
447 rc=$?
448 result=${result:-$rc}
450 return $rc
505 local rc=$?
507 if [ $rc -ne 0 ]; then
508 result=${result:-$rc}
510 return $rc
520 local rc=$?
522 [ $rc -eq 0 -a "${state}" == "${goal_state}" ] && return 0
523 rc=$?
524 result=${result:-$rc}
526 return $rc
534 local rc=$?
537 if [ ! -d "${name}" -a $rc -ne 0 ]; then
539 result=${result:-$rc}
540 return $rc
545 rc=$?
546 if [ $rc -ne 0 ]; then
547 result=${result:-$rc}
548 return $rc
570 local rc=$?
573 if [ $rc -ne 0 ]; then
574 return $rc
586 local rc=0
603 rc=$?
604 result=${result:-$rc}
605 return $rc
609 rc=$?
611 result=${result:-$rc}
612 return $rc
618 local rc=0
621 rc=$?
622 result=${result:-$rc}
623 return $rc
639 local rc=$?
641 result=${result:-$rc}
643 return $rc
651 local rc=1 # $? == 0 is an error in this case
653 result=${result:-$rc}
655 return $rc
667 return $rc
685 local rc=$?
689 return $rc
698 local rc=$?
699 if [ $rc -ne 0 ]; then
700 result=${result:-$rc}
702 return $rc
729 local rc=$?
730 result=${result:-$rc}
731 return $rc
748 local rc=$?
756 result=${result:-$rc}
757 tst_resm TWARN "Failed to kill sample process $sample_proc (kill exit status: $rc)"
769 local rc=$?
771 if [ $rc -ne 0 ]; then
772 return $rc
779 rc=$?
780 if [ $rc -ne 0 ]; then
794 result=${result:-$rc}
796 return $rc
805 local rc=$?
807 if [ $rc -ne 0 ]; then
808 return $rc
815 rc=$?
816 if [ $rc -ne 0 ]; then
830 result=${result:-$rc}
832 return $rc
838 local rc=$?
839 result=${result:-$rc}
840 tst_resm ${LIB_TEST_STATE} "Failed to send signal: $1 to tasks in cgroup (rc: $rc)"
841 return $rc
849 local rc=$?
851 if [ $rc -ne 0 ]; then
852 return $rc
858 rc=$?
859 if [ $rc -ne 0 ]; then
868 return $rc
877 local rc=$?
879 while [ $rc -eq 0 -a "${ps_state}" != "${goal_state}" -a \
883 rc=$?
884 if [ $rc -ne 0 ]; then
885 result=${result:-$rc}
892 return $rc
901 local rc=$?
903 while [ $rc -eq 0 -a "${ps_state}" == "${goal_state}" -a \
907 rc=$?
908 if [ $rc -ne 0 ]; then
909 result=${result:-$rc}
916 return $rc
931 local rc=$?
932 result=${result:-$rc}
934 return $rc
942 local rc=$?
944 if [ $rc -ne 0 ]; then
945 return $rc
952 rc=$?
953 if [ $rc -ne 0 ]; then
967 result=${result:-$rc}
969 return $rc