mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
run test TestAttacherMountDevice in temp directory
This commit is contained in:
parent
aa06ec6dd3
commit
65ead1950f
@ -541,6 +541,10 @@ func TestAttacherMountDevice(t *testing.T) {
|
|||||||
csiAttacher := attacher.(*csiAttacher)
|
csiAttacher := attacher.(*csiAttacher)
|
||||||
csiAttacher.csiClient = setupClient(t, tc.stageUnstageSet)
|
csiAttacher.csiClient = setupClient(t, tc.stageUnstageSet)
|
||||||
|
|
||||||
|
if tc.deviceMountPath != "" {
|
||||||
|
tc.deviceMountPath = filepath.Join(tmpDir, tc.deviceMountPath)
|
||||||
|
}
|
||||||
|
|
||||||
nodeName := string(csiAttacher.plugin.host.GetNodeName())
|
nodeName := string(csiAttacher.plugin.host.GetNodeName())
|
||||||
|
|
||||||
// Create spec
|
// Create spec
|
||||||
|
Loading…
Reference in New Issue
Block a user