Skip to content

Commit 62131fa

Browse files
committed
updated helper test skip msgs to show which vars are missing
1 parent e4dea8c commit 62131fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/plugin/helpers_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ func ensureEnosTransportEnvVars(t *testing.T) (map[string]string, bool) {
217217
vars["path"], okpath = os.LookupEnv("ENOS_TRANSPORT_PRIVATE_KEY_PATH")
218218

219219
if !okacc || !okuser || !okhost || !okpath {
220-
t.Log(`skipping because TF_ACC, ENOS_TRANSPORT_USER, ENOS_TRANSPORT_HOST, and ENOS_TRANSPORT_PRIVATE_KEY_PATH environment variables need to be set`)
220+
t.Logf(`skipping because TF_ACC(%t), ENOS_TRANSPORT_USER(%t), ENOS_TRANSPORT_HOST(%t), and ENOS_TRANSPORT_PRIVATE_KEY_PATH(%t) environment variables need to be set`,
221+
okacc, okuser, okhost, okpath,
222+
)
221223
t.Skip()
222224

223225
return vars, false

0 commit comments

Comments
 (0)