diff --git a/provisioner/fixtures/test.pkr.hcl b/provisioner/fixtures/test.pkr.hcl index e732497..a9c9143 100644 --- a/provisioner/fixtures/test.pkr.hcl +++ b/provisioner/fixtures/test.pkr.hcl @@ -47,7 +47,7 @@ source "virtualbox-vm" "ubuntu" { vm_name = "fixtures_default_1662571353037_70563" } -# test local execution ssh communicator +# test local execution # TODO: https://github.com/hashicorp/packer-plugin-virtualbox/issues/77 /*build { sources = ["source.virtualbox-vm.ubuntu"] diff --git a/provisioner/testinfra.go b/provisioner/testinfra.go index 8e07e56..18abbbe 100644 --- a/provisioner/testinfra.go +++ b/provisioner/testinfra.go @@ -146,10 +146,12 @@ func (provisioner *Provisioner) Prepare(raws ...interface{}) error { } else { // pytest returned no stdout log.Print("pytest help command returned no stdout; this indicates an issue with the specified Pytest installation") - return errors.New("pytest issue") + return errors.New("pytest installation issue") } } + log.Print("Testinfra installation verified") + // marker parameter if len(provisioner.config.Marker) > 0 { log.Printf("executing tests with marker expression: %s", provisioner.config.Marker)