1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

pkg/chrootarchive: TestChrootTarUntar fix copy/paste mistake

Introduced in 3ac6394b80, 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>
This commit is contained in:
Sebastiaan van Stijn 2022-10-16 13:15:23 +02:00
parent 0955c88c2e
commit 8a8202fcdc
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

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