[lxc-devel] [PATCH] tests: Don't fail when HOME isn't defined

Stéphane Graber stgraber at ubuntu.com
Fri Jun 13 21:09:18 UTC 2014


Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 src/tests/lxc-test-unpriv | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/lxc-test-unpriv b/src/tests/lxc-test-unpriv
index 139b080..5e06e23 100755
--- a/src/tests/lxc-test-unpriv
+++ b/src/tests/lxc-test-unpriv
@@ -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
-- 
1.9.1



More information about the lxc-devel mailing list