sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 12d76ba31a43a679f461085a2012fd225a221d23
parent 678ca13d54c3b70206f2f74aaa35500ecee850ee
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Tue, 15 Dec 2015 10:20:09 +0100

Fix path, package name, and inhibit output from removepkg stub

Diffstat:
Mt/travis-deps/removepkg | 2+-
Mt/travis.t | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/t/travis-deps/removepkg b/t/travis-deps/removepkg @@ -1,3 +1,3 @@ #!/bin/bash -rm /var/log/packages/$1 || rm /var/log/packages/$1-* +rm /var/log/packages/$1 || rm /var/log/packages/$1-* &>/dev/null diff --git a/t/travis.t b/t/travis.t @@ -55,7 +55,7 @@ Path: $RealBin/LO/nonexistentslackbuild LOCAL like (run(cmd => [qw/ sboinstall -r nonexistentslackbuild /]), qr/nonexistentslackbuild added to install queue[.].*perf[.]dummy' saved.*Cleaning for nonexistentslackbuild-1[.]0/s, 'sboinstall works (LOCAL_OVERRIDES)'); -like (run(cmd => [qw/ sboremove --nointeractive nonexistentialslackbuild /]), qr/Removing 1 package\(s\).*nonexistentialslackbuild.*All operations have completed/s, 'sboremove works'); +like (run(cmd => [qw/ sboremove --nointeractive nonexistentslackbuild /]), qr/Removing 1 package\(s\).*nonexistentslackbuild.*All operations have completed/s, 'sboremove works'); is (system(qw!sudo /sbin/installpkg nonexistentslackbuild-0.9-noarch-1_SBo.tgz!), 0, 'Old version fake installed'); like (run(cmd => [qw/ sbocheck /]), qr/Updating SlackBuilds tree.*Checking for updated SlackBuilds.*nonexistentslackbuild 0[.]9.*needs updating/s, 'sbocheck finds old version'); @@ -68,7 +68,7 @@ is ($output, "Unable to locate nonexistentslackbuild3 in the SlackBuilds.org tre # 19-23: Test sboupgrade --all is (system(qw!sudo /sbin/removepkg nonexistentslackbuild!), 0, 'removepkging nonexistentslackbuild works'); -is (system(qw!sudo /sbin installpkg nonexistentslackbuild-0.9-noarch-1_SBo.tgz!), 0, 'installpkg old version works'); +is (system(qw!sudo /sbin/installpkg nonexistentslackbuild-0.9-noarch-1_SBo.tgz!), 0, 'installpkg old version works'); like (run(cmd => [qw/ sboupgrade --all /]), qr/Checking for updated SlackBuilds.*nonexistentslackbuild added to upgrade queue.*Cleaning for nonexistentslackbuild/s, 'sboupgrade --all works'); ok (-e "/var/log/packages/nonexistentslackbuild-1.0-noarch-1_SBo", 'updated package is installed'); ok (! -e "/var/log/packages/nonexistentslackbuild-0.9-noarch-1_SBo", 'old package is removed');