Skip to content

Commit

Permalink
Tail CFEngine-Install.log in case of deployment-test package install …
Browse files Browse the repository at this point in the history
…failure

Ticket: none
Changelog: none
  • Loading branch information
craigcomstock committed Sep 8, 2023
1 parent 98bd31f commit 75ece69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/deployment-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ USER=${USER:-$(whoami)}

if [ ! -d /var/cfengine ]; then
# ci and local buildscripts should place built packages in $NTECH_ROOT/packages
sudo dpkg -i "$NTECH_ROOT"/packages/cfengine-nova-hub*deb
if ! sudo dpkg -i "$NTECH_ROOT"/packages/cfengine-nova-hub*deb; then
tail -20 /var/log/CFEngine-Install.log
exit 1
fi
fi

# now that cfengine is probably installed, run cf-support if there is an error
Expand Down

0 comments on commit 75ece69

Please sign in to comment.