cmd/uplink: Pass -- in tests to avoid treating generated arg strings as flags.

Change-Id: I41c50b9f645b57ddc8832b0fc92f1c6bfaf2de8d
This commit is contained in:
ccase 2019-12-20 17:39:20 -05:00 committed by Stefan Benten
parent acb4435a67
commit 6f1eaef8d4

View File

@ -125,7 +125,7 @@ func TestSetGetMeta(t *testing.T) {
cmd := exec.Command(uplinkExe,
"--config-dir", ctx.Dir("uplink"),
"meta", "get", string(keyNorm[1:len(keyNorm)-1]), uri,
"meta", "get", "--", string(keyNorm[1:len(keyNorm)-1]), uri,
)
t.Log(cmd)