vagrant: Improve installCheckPhase to verify an actual operation

Just running `vagrant --version` was insufficient to catch #76629, but
this would have.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2019-12-31 16:33:33 -08:00
parent 5ddafad13e
commit 2c70867d77

View File

@ -90,12 +90,7 @@ in buildRubyGem rec {
''; '';
installCheckPhase = '' installCheckPhase = ''
if [[ "$("$out/bin/vagrant" --version)" == "Vagrant ${version}" ]]; then HOME="$(mktemp -d)" $out/bin/vagrant init --output - > /dev/null
echo 'Vagrant smoke check passed'
else
echo 'Vagrant smoke check failed'
return 1
fi
''; '';
# `patchShebangsAuto` patches this one script which is intended to run # `patchShebangsAuto` patches this one script which is intended to run