]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: Don't fail when HOME isn't defined
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 13 Jun 2014 21:08:44 +0000 (17:08 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Sat, 14 Jun 2014 19:48:49 +0000 (15:48 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/tests/lxc-test-unpriv

index 139b0807f543a310957f1c7e0e77780b03aa879d..5e06e23696813108ed6f5a64eed42daba0ce20da 100755 (executable)
@@ -31,7 +31,7 @@ which newuidmap >/dev/null 2>&1 || { echo "'newuidmap' command is missing" >&2;
 
 DONE=0
 cleanup() {
-       cd
+       cd /
 
        run_cmd lxc-stop -n c1 -k
        pkill -u $(id -u $TUSER) -9