From 2c38dbeb2eea18be19ff13391a2069e37096ac71 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 10 Sep 2013 00:42:25 -0400 Subject: test: tidy up - libremakepkg: set BLACKLIST, as it will be used when checking the PKGBUILD - test-common.sh: make sure that $HOME isn't the default, so we don't trash the user's home directory if accidentally run outside of testenv - testenv: don't worry about adding dest/usr/sbin to the path --- test/test-common.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test-common.sh') diff --git a/test/test-common.sh b/test/test-common.sh index e837498..85c05c5 100644 --- a/test/test-common.sh +++ b/test/test-common.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [[ $HOME == "$(eval echo ~$USER)" ]]; then + libremessages error "\$HOME is the default for %s; use testenv: %s" "$USER" "$HOME" + exit 1 +fi + _before() { tmpdir="$(mktemp -d --tmpdir "test-$1.XXXXXXXXXXXX")" stat=0 -- cgit v1.2.3-54-g00ecf