#!/bin/sh

puppet apply --test "$1"
test $? -eq 2 || exit 1

sleep 5

puppet apply --test "$1"
test $? -eq 0 || exit 1
