From ef89e564f45d755c4b08fb030413b8dc28fff155 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 29 Jun 2016 11:04:54 -0400 Subject: [PATCH] Update Vagrant boxes before running packaging test This commit adds an execution of a Vagrant box update task before bringing a Vagrant box up for running packaging tests. Relates #19155 --- qa/vagrant/build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qa/vagrant/build.gradle b/qa/vagrant/build.gradle index 784655edaa3..89668a06534 100644 --- a/qa/vagrant/build.gradle +++ b/qa/vagrant/build.gradle @@ -223,6 +223,12 @@ for (String box : availableBoxes) { continue; } + Task update = tasks.create("vagrant${boxTask}#update", VagrantCommandTask) { + boxName box + args 'box', 'update', box + dependsOn checkVagrantVersion + } + Task up = tasks.create("vagrant${boxTask}#up", VagrantCommandTask) { boxName box /* Its important that we try to reprovision the box even if it already @@ -238,7 +244,7 @@ for (String box : availableBoxes) { args 'up', box, '--provision', '--provider', 'virtualbox' /* It'd be possible to check if the box is already up here and output SKIPPED but that would require running vagrant status which is slow! */ - dependsOn checkVagrantVersion + dependsOn update } Task smoke = tasks.create("vagrant${boxTask}#smoketest", Exec) {