From 2220828d7895c08307879b5b2983c374faffa0e5 Mon Sep 17 00:00:00 2001 From: Weihua Hu Date: Fri, 7 Sep 2018 11:14:19 +0800 Subject: [PATCH] fix bug #5612 of xcattest (#5613) --- xCAT-test/xcattest | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-test/xcattest b/xCAT-test/xcattest index 5881aa2eb..4923db1c4 100755 --- a/xCAT-test/xcattest +++ b/xCAT-test/xcattest @@ -1741,7 +1741,9 @@ sub get_files_recursive next if ($direntry eq '..'); my $target = "$dir/$direntry"; if (-d $target) { - get_files_recursive($target, $files_path_ref); + unless ($target =~ /xcat-inventory\/templates/){ + get_files_recursive($target, $files_path_ref); + } } else { push(@{$files_path_ref}, glob("$target\n")); }