[test suite] don't remove output/ directory in --list mode, closes #53
This commit is contained in:
parent
cccab3c22b
commit
57773993e4
@ -4574,6 +4574,7 @@ sub init() {
|
|||||||
chmod 0600, $cf{$name} or die "[*] Could not chmod 0600 $cf{$name}";
|
chmod 0600, $cf{$name} or die "[*] Could not chmod 0600 $cf{$name}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unless ($list_mode) {
|
||||||
if (-d $output_dir) {
|
if (-d $output_dir) {
|
||||||
if (-d "${output_dir}.last") {
|
if (-d "${output_dir}.last") {
|
||||||
rmtree "${output_dir}.last"
|
rmtree "${output_dir}.last"
|
||||||
@ -4607,6 +4608,7 @@ sub init() {
|
|||||||
next unless -e $file;
|
next unless -e $file;
|
||||||
unlink $file or die "[*] Could not unlink($file)";
|
unlink $file or die "[*] Could not unlink($file)";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($test_include) {
|
if ($test_include) {
|
||||||
for my $re (split /\s*,\s*/, $test_include) {
|
for my $re (split /\s*,\s*/, $test_include) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user