2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

fix issue 5881: xcattest failed to add component directory name as default label (#5882)

This commit is contained in:
Weihua Hu
2018-12-11 13:42:54 +08:00
committed by Bin Xu
parent 2c37d0eb6d
commit c0a7154bf6

View File

@@ -2132,7 +2132,8 @@ sub calculate_case_belong_to_which_cmd {
my $file_path = shift;
my $command = undef;
if ($file_path =~ "\/autotest\/testcase") {
$file_path =~ s|[\/]{2,}|\/|g;
if ($file_path =~ /\/autotest\/testcase/) {
my @path_str = split("/", $file_path);
#print Dumper \@path_str;
my $index = 0;