mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Update provisioner_test.go
fix TestProvisioner_RemoteFileDefaultsToScriptnnnn
This commit is contained in:
parent
f1c0a9cdbd
commit
569c802630
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ func TestProvisioner_RemoteFileDefaultsToScriptnnnn(t *testing.T) {
|
|||
t.Fatalf("should not have error: %s", err)
|
||||
}
|
||||
|
||||
remoteFileRegex := regexp.MustCompile("script_[0-9]{4}.sh")
|
||||
remoteFileRegex := regexp.MustCompile("script_[0-9]{1,4}.sh")
|
||||
|
||||
if !remoteFileRegex.MatchString(p.config.RemoteFile) {
|
||||
t.Fatalf("remote_file did not default to script_nnnn.sh: %q", p.config.RemoteFile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue