cli: tests: Clarify who cleans up tmpdir

Add a comment to clarify that the caller of
testRunContainerSetup() cleans up the tmpdir.

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
This commit is contained in:
Graham Whaley 2018-07-18 11:05:02 +01:00
parent 73c8286c7e
commit 50b445cf35

View File

@ -168,6 +168,7 @@ func testRunContainerSetup(t *testing.T) runContainerData {
assert.NoError(err, "unable to start fake container workload %+v: %s", workload, err) assert.NoError(err, "unable to start fake container workload %+v: %s", workload, err)
// temporal dir to place container files // temporal dir to place container files
// Note - it is returned to the caller, who does the defer remove to clean up.
tmpdir, err := ioutil.TempDir("", "") tmpdir, err := ioutil.TempDir("", "")
assert.NoError(err) assert.NoError(err)