diff --git a/xCAT-test/xcattest b/xCAT-test/xcattest index 0a1ef119b..5881aa2eb 100755 --- a/xCAT-test/xcattest +++ b/xCAT-test/xcattest @@ -85,48 +85,48 @@ $::USAGE = "Usage: To get help: $program_name -h -To list the information about all cases shipped by xcat test package +To list the information about all cases shipped by xcat test package $program_name -l {caselist|caseinfo|casenum} To list the information about all bunldes shipped by xcat test package - $program_name -l bundleinfo + $program_name -l bundleinfo To list the information about label $program_name -l labelinfo To list the information about cases in specific bundles $program_name -l {caselist|caseinfo|casenum} -b To list the information about cases related to specific commands - $program_name -l {caselist|caseinfo|casenum} -c -To list the information about specific cases + $program_name -l {caselist|caseinfo|casenum} -c +To list the information about specific cases $program_name -l {caselist|caseinfo|casenum} -t To list cases information that satisfy specific filter expression - $program_name -l {caselist|caseinfo|casenum} -s \"filter_expression\" + $program_name -l {caselist|caseinfo|casenum} -s \"filter_expression\" For short, show the cases list can use below command $program_name -l -s \"filter_expression\" To list information about cases in specific bundles and satisfy specific filter expression at same time $program_name -l {caselist|caseinfo|casenum} -b -s \"filter_expression\" -To run test cases in specific bundles +To run test cases in specific bundles $program_name [-f {configure_file|configure_file:System}] -b [-r] [-q] -To run specific test cases +To run specific test cases $program_name [-f {configure_file|configure_file:System}] -t [-r] [-q] -To run all cases related to specific commands +To run all cases related to specific commands $program_name [-f {configure_file|configure_file:System}] -c [-r] [-q] To run test cases that satisfy specific filter expression $program_name -s \"filter_expression\" Options: - -h : Get $program_name usage information. + -h : Get $program_name usage information. -l : list specific information. The valid options are caselist,caseinfo,casenum,bundleinfo. For list case information, caselist is default value. -f : specify the configuration file. If 'System' tag is used, only [System] section in the configuration file will be used. If 'System' is not used all other sections of the configuration file will be used, like [Table], [Object], etc. - -c : Comma separated list of command names to test. + -c : Comma separated list of command names to test. -t : Comma separated list of test case names to test. -b : Comma separated list of bundle names to test. If a bundle name is specified without an absolute path, such like /[$i]->{arch} = $1; if ($run_case_flag) { - + #To judge whether need to skip the current case my @vaild_archs_tmp = split(",", $case_ref->[$i]->{arch}); my @vaild_archs=(); - foreach my $arch (@vaild_archs_tmp){ + foreach my $arch (@vaild_archs_tmp){ my $tmp_str=""; if ($arch =~ /ppc/i && $arch !~ /le|el/i) { $tmp_str = "ppc"; @@ -1066,7 +1066,7 @@ sub load_case { } elsif ($arch =~ /x86/i) { $tmp_str = "x86"; } - push @vaild_archs, $tmp_str; + push @vaild_archs, $tmp_str; } my $env_arch = ""; @@ -1124,7 +1124,7 @@ sub load_case { } last; } - } + } unless ($valid) { if (exists($case_name_index_map_bak{ $case_ref->[$i]->{name} })) { $$case_name_index_map_ref{ $case_ref->[$i]->{name} } = $case_name_index_map_bak{ $case_ref->[$i]->{name} };