diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-09-10 14:07:10 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-09-10 14:07:10 +0200 |
commit | 70a7508791aebd0cfa623ecdbd56e072629f799c (patch) | |
tree | defc0ac9e0cb9722905942d5bdea140f7b4f3b58 /t | |
parent | c405a7a9e9d1843ed9977ab3d001558891a4213d (diff) | |
download | sbotools-70a7508791aebd0cfa623ecdbd56e072629f799c.tar.xz |
05-upgrade.t: tests will fail if nesb2 is mistakenly already installed, so clean it up
Diffstat (limited to 't')
-rwxr-xr-x | t/05-upgrade.t | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/05-upgrade.t b/t/05-upgrade.t index e9b9ceb..b7e1e29 100755 --- a/t/05-upgrade.t +++ b/t/05-upgrade.t @@ -20,16 +20,19 @@ $ENV{TEST_ONLINE} //= 0; sub cleanup { capture_merged { system(qw!/sbin/removepkg nonexistentslackbuild!); + system(qw!/sbin/removepkg nonexistentslackbuild2!); system(qw!/sbin/removepkg nonexistentslackbuild4!); system(qw!/sbin/removepkg nonexistentslackbuild5!); system(qw!/sbin/removepkg nonexistentslackbuild6!); system(qw!/sbin/removepkg weird-versionsbo!); unlink "$RealBin/LO/nonexistentslackbuild/perf.dummy"; + unlink "$RealBin/LO/nonexistentslackbuild2/perf.dummy"; unlink "$RealBin/LO/nonexistentslackbuild4/perf.dummy"; unlink "$RealBin/LO/nonexistentslackbuild5/perf.dummy"; unlink "$RealBin/LO/nonexistentslackbuild6/perf.dummy"; unlink "$RealBin/LO/weird-versionsbo/perf.dummy"; unlink "$RealBin/LO2/nonexistentslackbuild/perf.dummy"; + unlink "$RealBin/LO2/nonexistentslackbuild2/perf.dummy"; unlink "$RealBin/LO2/nonexistentslackbuild4/perf.dummy"; unlink "$RealBin/LO2/nonexistentslackbuild5/perf.dummy"; unlink "$RealBin/LO2/nonexistentslackbuild6/perf.dummy"; @@ -37,19 +40,23 @@ sub cleanup { unlink "$RealBin/LO3/nonexistentslackbuild4/perf.dummy"; unlink "$RealBin/LO3/nonexistentslackbuild5/perf.dummy"; system(qw!rm -rf /tmp/SBo/nonexistentslackbuild-0.9!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuild2-0.9!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild4-0.9!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild5-0.9!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild6-0.9!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild-1.0!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuild2-1.0!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild4-1.0!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild5-1.0!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild6-1.0!); system(qw!rm -rf /tmp/SBo/weird-versionsbo-1.0!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild-1.1!); + system(qw!rm -rf /tmp/SBo/nonexistentslackbuild2-1.1!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild4-1.1!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild5-1.1!); system(qw!rm -rf /tmp/SBo/nonexistentslackbuild6-1.1!); system(qw!rm -rf /tmp/package-nonexistentslackbuild!); + system(qw!rm -rf /tmp/package-nonexistentslackbuild2!); system(qw!rm -rf /tmp/package-nonexistentslackbuild4!); system(qw!rm -rf /tmp/package-nonexistentslackbuild5!); system(qw!rm -rf /tmp/package-nonexistentslackbuild6!); |