| @@ -762,19 +762,18 @@ main() | | | @@ -762,19 +762,18 @@ main() |
762 | # Run or list test cases. | | 762 | # Run or list test cases. |
763 | if `${_lflag}`; then | | 763 | if `${_lflag}`; then |
764 | if [ ${#} -gt 0 ]; then | | 764 | if [ ${#} -gt 0 ]; then |
765 | _atf_syntax_error "Cannot provide test case names with -l" | | 765 | _atf_syntax_error "Cannot provide test case names with -l" |
766 | fi | | 766 | fi |
767 | _atf_list_tcs | | 767 | _atf_list_tcs |
768 | else | | 768 | else |
769 | if [ ${#} -eq 0 ]; then | | 769 | if [ ${#} -eq 0 ]; then |
770 | _atf_syntax_error "Must provide a test case name" | | 770 | _atf_syntax_error "Must provide a test case name" |
771 | elif [ ${#} -gt 1 ]; then | | 771 | elif [ ${#} -gt 1 ]; then |
772 | _atf_syntax_error "Cannot provide more than one test case name" | | 772 | _atf_syntax_error "Cannot provide more than one test case name" |
773 | else | | 773 | else |
774 | _atf_run_tc "${1}" | | 774 | _atf_run_tc "${1}" |
775 | _atf_run_tc "${1}:cleanup" | | | |
776 | fi | | 775 | fi |
777 | fi | | 776 | fi |
778 | } | | 777 | } |
779 | | | 778 | |
780 | # vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4 | | 779 | # vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4 |