浏览代码

pkg/chrootarchive: TestChrootTarUntar fix copy/paste mistake

Introduced in 3ac6394b8082d4700483d52fbfe54914be537d9e, which makes no mention
of a reason for extracting to the same directory as we created the archive from,
so I assume this was a copy/paste mistake and the path was meant to be "dest",
not "src".

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 年之前
父节点
当前提交
8a8202fcdc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/chrootarchive/archive_test.go

+ 1 - 1
pkg/chrootarchive/archive_test.go

@@ -58,7 +58,7 @@ func TestChrootTarUntar(t *testing.T) {
 	if err != nil {
 		t.Fatal(err)
 	}
-	dest := filepath.Join(tmpdir, "src")
+	dest := filepath.Join(tmpdir, "dest")
 	if err := system.MkdirAll(dest, 0700); err != nil {
 		t.Fatal(err)
 	}