X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=bin%2Fdump2test.pl;h=c8024eacfd7931f8448f762d0545211129f3fb42;hb=426db8401029bb7d41479bacb36ac0b4b5f2e495;hp=e1c749835e6a3c7c0298967298e82972b5f36685;hpb=68d767eafbbf968a504e212120029d71e7be986a;p=perl-cwmp.git diff --git a/bin/dump2test.pl b/bin/dump2test.pl index e1c7498..c8024ea 100755 --- a/bin/dump2test.pl +++ b/bin/dump2test.pl @@ -71,8 +71,11 @@ warn "dumping new tests into $test_path\n"; foreach my $name ( keys %$requests ) { my $from = $requests->{$name}; my $to = "$test_path/$name"; + if ( -e $to ) { + warn "SKIP $to\n"; + next; + } warn "## $from -> $to\n"; - next if -e $to; my $xml = read_file( $from ); write_file( $to, $xml ); DumpFile( "$to.yml", xml2state( $xml ) );