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 = ''
if [[ "$("$out/bin/vagrant" --version)" == "Vagrant ${version}" ]]; then
echo 'Vagrant smoke check passed'
else
echo 'Vagrant smoke check failed'
return 1
fi
HOME="$(mktemp -d)" $out/bin/vagrant init --output - > /dev/null
'';
# `patchShebangsAuto` patches this one script which is intended to run