From 858994d9c8c97c4cd027b270c4e623da53d49da1 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Fri, 27 May 2016 00:04:38 +0200 Subject: 01-unit.t: make sure to skip peform_sbo tests if /foo exists --- t/01-unit.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/01-unit.t b/t/01-unit.t index 1e09fb1..d25f014 100755 --- a/t/01-unit.t +++ b/t/01-unit.t @@ -280,7 +280,9 @@ SKIP: { } # 50-52: test perform_sbo(); -{ +SKIP: { + skip 'Tests invalid if /foo exists.', 3 if -e "/foo"; + my @res = SBO::Lib::perform_sbo(JOBS => 'FALSE', LOCATION => '/foo', ARCH => 1); is ($res[0], "Unable to backup /foo/foo.SlackBuild to /foo/foo.SlackBuild.orig\n", 'perform_sbo returned correct pkg'); -- cgit v1.2.3