5 Commits

Author SHA1 Message Date
James E. Blair
e82731f0f3 Run ansible apply test in parallel
Change-Id: Ic5b5ef5ca115ca244ebf86079f9b192fbb13fad6
2016-10-04 15:29:25 -07:00
James E. Blair
a01bec1fc6 Use ansible for puppet apply test
This is needed since the hiera configuration is in the ansible
role.

Have puppet append its output directly to our per-test output file.

Rename that file with a FAILED suffix for easy identification when
looking at the results in the published log directory.

Change-Id: Ie2a028b9e0179168d279bcf33de7f997cdfdbc8d
Depends-On: I0db01d128258f78e9b196354799a80774f6c6808
2016-10-04 22:29:00 +00:00
James E. Blair
ade79eb3f2 Remove -e from apply test applier
The script that is run by find on each apply test file has -e set,
yet, it attempts to save the exit code from puppet apply and keep
running even in error.  Remove -e so that it does not immediately
exit and can continue as designed.

Change-Id: I1a24e80f42be8d028ecc3eb02df54b49f811fff4
2015-07-08 16:30:59 -07:00
Paul Belanger
be7adfa7f2 Display puppet apply results right after running
Otherwise, there is a case where the results are not rendered properly
because the shell exits.

Change-Id: Ica05615cad4fcc15c9d941d16f74cb4f68bc5a99
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-08 16:36:36 -04:00
Spencer Krum
284749fb4d Print the node definition before apply test
This makes it easier to tell which node definition is being evaluated
Because xargs -P doesn't do bash functions, some of the apply_test has
been moved into test_puppet_apply.sh. All the test snippets and test
output is being recorded in files in tools/opt, then catted for the
user.

Change-Id: I4fb77f93f9e9a7216b62634438a11d8d297bdefe
2015-06-12 17:11:25 -07:00