run test TestAttacherMountDevice in temp directory

This commit is contained in:
Cao Shufeng 2018-06-28 17:01:43 +08:00
parent aa06ec6dd3
commit 65ead1950f

View File

@ -541,6 +541,10 @@ func TestAttacherMountDevice(t *testing.T) {
csiAttacher := attacher.(*csiAttacher)
csiAttacher.csiClient = setupClient(t, tc.stageUnstageSet)
if tc.deviceMountPath != "" {
tc.deviceMountPath = filepath.Join(tmpDir, tc.deviceMountPath)
}
nodeName := string(csiAttacher.plugin.host.GetNodeName())
// Create spec