packer-cn/helper
Wilken Rivera 360f81b030 tests/provisioners: Add TestProvsionerPreCheck function
This function can be used to check if a Provisioner has been marked for testing within the ACC_TEST_PROVISIONERS environment variable.

While testing I found that the shell acceptance test were also running when trying to run powershell tests.

Before change
```
⇶  ACC_TEST_BUILDERS=amazon-ebs ACC_TEST_PROVISIONERS=powershell go test -v ./provisioner/shell/... -timeout=1h

=== RUN
TestShellProvisioner/testing_amazon-ebs_builder_against_shell_provisioner
2020/04/06 15:18:12 ui: amazon-ebs: output will be in this color.
2020/04/06 15:18:12 ui:
2020/04/06 15:18:12 Build debug mode: false
2020/04/06 15:18:12 Force build: false
2020/04/06 15:18:12 On error:
2020/04/06 15:18:12 Preparing build: amazon-ebs
2020/04/06 15:18:12 Waiting on builds to complete...
2020/04/06 15:18:12 Starting build run: amazon-ebs
2020/04/06 15:18:12 Running builder: amazon-ebs
```

After changes
```
⇶  ACC_TEST_BUILDERS=amazon-ebs ACC_TEST_PROVISIONERS=powershell go test -v ./provisioner/shell/... -timeout=1h
--- SKIP: TestShellProvisioner (0.00s)
    provisioners.go:88: Provisioner "shell" not defined in ACC_TEST_PROVISIONERS
```
2020-04-06 16:52:24 -04:00
..
builder/testing helper/builder/testing: prune unused functions (#8852) 2020-03-09 10:46:32 +01:00
common clean up a few final issues with info sharing 2019-12-17 11:20:57 -08:00
communicator Merge branch 'master' into hcl2_singular_blocks 2020-03-17 14:47:17 +01:00
config fix to work with hcl2; update tests 2020-01-13 15:52:05 -08:00
enumflag Fail on unknown values of -on-error 2016-09-17 14:42:21 +00:00
flag-kv TestStringSlice_Set: check error even if none is returned 2020-03-12 18:01:20 +01:00
flag-slice Support -flag=var1,var2,var3 to fix #2332 2015-06-26 17:54:59 -07:00
multistep rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
ssh Add golangci-lint to project (#8686) 2020-02-14 11:42:29 -05:00
tests tests/provisioners: Add TestProvsionerPreCheck function 2020-04-06 16:52:24 -04:00
useragent Include arch and os 2018-04-05 14:28:50 -04:00
wrappedreadline allow to build on solaris 2019-06-07 12:42:38 +02:00