aboutsummaryrefslogtreecommitdiffsponsor
path: root/removepkg_integration_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'removepkg_integration_test.go')
-rw-r--r--removepkg_integration_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/removepkg_integration_test.go b/removepkg_integration_test.go
index 15801bd..5048914 100644
--- a/removepkg_integration_test.go
+++ b/removepkg_integration_test.go
@@ -76,16 +76,16 @@ func TestInstallAll(t *testing.T) {
from := os.Getenv("SOURCE")
pkgs, err := findSlackwarePackages(from)
require.NoError(t, err)
+ require.NotEmpty(t, pkgs, "expected some Slackware packages to test installation")
require.NotEmpty(t, os.Getenv("ROOT"), "expected ROOT environment variable to be set")
root := os.Getenv("ROOT")
require.NotEqual(t, "/", root, "a test directory should be used for ROOT. All files there will be deleted")
- _ = os.RemoveAll(root)
-
installFlags := DefaultInstallPkgFlags
installFlags.chmod = false
installFlags.chown = false
+ installFlags.Strict = true
installFlags.SetEnvValues()
removeFlags := DefaultRemovePkgFlags