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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user