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:
parent
0955c88c2e
commit
8a8202fcdc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue