2013-07-31 01:25:33 -04:00
|
|
|
package chroot
|
|
|
|
|
2019-10-24 00:21:08 -04:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-11-12 17:44:02 -05:00
|
|
|
"github.com/hashicorp/packer/packer-plugin-sdk/chroot"
|
2019-10-24 00:21:08 -04:00
|
|
|
)
|
2013-07-31 01:25:33 -04:00
|
|
|
|
|
|
|
func TestFlockCleanupFunc_ImplementsCleanupFunc(t *testing.T) {
|
|
|
|
var raw interface{}
|
|
|
|
raw = new(StepFlock)
|
2019-10-24 00:21:08 -04:00
|
|
|
if _, ok := raw.(chroot.Cleanup); !ok {
|
2013-07-31 01:25:33 -04:00
|
|
|
t.Fatalf("cleanup func should be a CleanupFunc")
|
|
|
|
}
|
|
|
|
}
|