From f26935eb0c36df4e68101d383e56c5aa2290651e Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Sat, 25 Jul 2015 22:23:56 +0800 Subject: [PATCH] test: propagate the error to the caller When the copyBusybox() fails, the error message should be propagated to the caller of newRootfs(). Signed-off-by: Lai Jiangshan --- libcontainer/integration/utils_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/integration/utils_test.go b/libcontainer/integration/utils_test.go index 96050338..1fc2da4d 100644 --- a/libcontainer/integration/utils_test.go +++ b/libcontainer/integration/utils_test.go @@ -72,7 +72,7 @@ func newRootfs() (string, error) { return "", err } if err := copyBusybox(dir); err != nil { - return "", nil + return "", err } return dir, nil }