aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/01-unit.t9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/01-unit.t b/t/01-unit.t
index 883935e..a7dde4c 100755
--- a/t/01-unit.t
+++ b/t/01-unit.t
@@ -213,10 +213,13 @@ SKIP: {
is ($exit, 2, 'get_sbo_location([]) exited with 2');
is ($out, "A fatal script error has occurred:\nget_sbo_location requires an argument.\nExiting.\n", 'get_sbo_location([]) gave correct output');
- local $config{LOCAL_OVERRIDES} = 'FALSE';
- my %res = get_sbo_locations('nonexistentslackbuild');
+ SKIP: {
+ skip 'Test invalid if no SLACKBUILDS.TXT exists.', 5 if ! -e '/usr/sbo/repo/SLACKBUILDS.TXT';
+ local $config{LOCAL_OVERRIDES} = 'FALSE';
+ my %res = get_sbo_locations('nonexistentslackbuild');
- is (%res+0, 0, q"get_sbo_locations('nonexistentslackbuild') returned an empty hash");
+ is (%res+0, 0, q"get_sbo_locations('nonexistentslackbuild') returned an empty hash");
+ }
}
# 37: test get_local_outdated_versions();