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:
parent
5ddafad13e
commit
2c70867d77
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue