From 8a8202fcdce012a892aaa796b2235c479aeac84d Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 16 Oct 2022 13:15:23 +0200 Subject: [PATCH] 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 --- pkg/chrootarchive/archive_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chrootarchive/archive_test.go b/pkg/chrootarchive/archive_test.go index 07bf73a9fd..5666be2970 100644 --- a/pkg/chrootarchive/archive_test.go +++ b/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) }