aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2017-05-18 17:18:28 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2017-05-18 17:18:28 +0200
commit9cc61afa1f048bf1f7ff3423632532198d8927df (patch)
tree5050d1d07172e9f1291dacaea6899cc7fcfb8292
parentd21bd9fc2044ee2634ab7a26addf2bca5f6bc5e2 (diff)
downloadsbotools-9cc61afa1f048bf1f7ff3423632532198d8927df.tar.xz
t/03-travis.t: fix up travis tests for new sbofind output
-rwxr-xr-xt/03-travis.t18
1 files changed, 9 insertions, 9 deletions
diff --git a/t/03-travis.t b/t/03-travis.t
index d5bd2d1..5733930 100755
--- a/t/03-travis.t
+++ b/t/03-travis.t
@@ -26,7 +26,7 @@ SKIP: {
skip 'Not doing online tests without TEST_ONLINE=1', 2 if $ENV{TEST_ONLINE} ne '1';
sbosnap 'fetch', { expected => qr/\APulling SlackBuilds tree\.\.\.\n/ };
- sbofind 'sbotools', { expected => "SBo: sbotools\nPath: /usr/sbo/repo/system/sbotools\n\n" };
+ sbofind 'sbotools', { expected => "SBo: sbotools 1.9\nPath: /usr/sbo/repo/system/sbotools\n\n" };
}
# 4-10: Test alternative REPO
@@ -39,7 +39,7 @@ SKIP: {
sbosnap 'fetch', { expected => qr!Pulling SlackBuilds tree.*Cloning into '/usr/sbo/repo'!s };
ok (-e "/usr/sbo/repo/SLACKBUILDS.TXT", "SLACKBUILDS.TXT exists (REPO)");
ok (! -e "/usr/sbo/repo/SLACKBUILDS.TXT.gz", "SLACKBUILDS.TXT.gz doesn't exist (REPO)");
- sbofind 'sbotools', { expected => "SBo: sbotools\nPath: /usr/sbo/repo/system/sbotools\n\n" };
+ sbofind 'sbotools', { expected => qr"SBo: sbotools .*\nPath: /usr/sbo/repo/system/sbotools\n\n" };
}
# 11-17: Test local overrides
@@ -50,25 +50,25 @@ SKIP: {
skip "Online testing disabled (TEST_ONLINE!=1) and could not create dummy SLACKBUILDS.TXT", 9 if $skip;
sbofind 'nonexistentslackbuild', { expected => sub {
-m!\QLocal: nonexistentslackbuild6
+m!\QLocal: nonexistentslackbuild6 1.0
Path: $RealBin/LO/nonexistentslackbuild6!
and
-m!\QLocal: nonexistentslackbuild5
+m!\QLocal: nonexistentslackbuild5 1.0
Path: $RealBin/LO/nonexistentslackbuild5!
and
-m!\QLocal: nonexistentslackbuild4
+m!\QLocal: nonexistentslackbuild4 1.0
Path: $RealBin/LO/nonexistentslackbuild4!
and
-m!\QLocal: nonexistentslackbuild2
+m!\QLocal: nonexistentslackbuild2 1.0
Path: $RealBin/LO/nonexistentslackbuild2!
and
-m!\QLocal: nonexistentslackbuild7
+m!\QLocal: nonexistentslackbuild7 1.0
Path: $RealBin/LO/nonexistentslackbuild7!
and
-m!\QLocal: nonexistentslackbuild
+m!\QLocal: nonexistentslackbuild 1.0
Path: $RealBin/LO/nonexistentslackbuild!
and
-m!\QLocal: nonexistentslackbuild8
+m!\QLocal: nonexistentslackbuild8 1.0
Path: $RealBin/LO/nonexistentslackbuild8!
} };