]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
tests: fix su failures under travis 321/head
authorSerge Hallyn <serge@hallyn.com>
Tue, 13 Apr 2021 03:37:23 +0000 (22:37 -0500)
committerSerge Hallyn <serge@hallyn.com>
Sat, 17 Apr 2021 02:03:08 +0000 (21:03 -0500)
HOME has to start as /root since we are testing
that su didn't change it.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
tests/su/02/run_env_test.sh

index 525d61934ce95c1044150f1a40ecec0dd80fc6c8..32243ad112fe696ed4783a982bb7619d498e78c1 100755 (executable)
@@ -9,6 +9,8 @@ testname=$(basename $0)
 . ../../common/config.sh
 . ../../common/log.sh
 
+export HOME=/root  # seems to be set to /home/travis, breaking some tests
+
 command=""
 
 case  "$testname" in