diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-14 02:44:07 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-14 02:44:07 +0100 |
commit | d32cfb6ec78b3c842651d6aa81458e082a1a4234 (patch) | |
tree | b965b2a9c995a5f85a750672810deb149ef7efda | |
parent | f9e6c214e191e7100646af617e399b095449679d (diff) | |
download | sbotools2-d32cfb6ec78b3c842651d6aa81458e082a1a4234.tar.xz |
Use system(mv) to move files, and test that it's ok
-rwxr-xr-x | t/test.t | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -511,12 +511,13 @@ $line = '( tar xvf xapian-bindings-$VERSION.tar.gz'; is($regex, '(?^u: xapian-bindings-[^-]+.tar.gz)', 'get_dc_regex test 04.1'); is($initial, ' ', 'get_dc_regex test 04.2'); -# end of tests. - # move things back to pre-migration state foreach my $fname (glob("$repo_path/*")) { - move $fname, $sbo_home; + print "Moving $fname\n"; + is(system('mv', $fname, $sbo_home), 0, "moving $fname to pre-migration place works"); } unlink $repo_path; +# end of tests. + done_testing(); |