[Qa-jenkins-scm] [jenkins.debian.net] 02/11: lvc: name the target volume after the job

Holger Levsen holger at layer-acht.org
Fri May 27 18:15:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 5321d3ad2a10788de04de728ff4c5bb093e3487e
Author: Philip Hands <phil at hands.com>
Date:   Thu May 26 21:22:47 2016 +0200

    lvc: name the target volume after the job
---
 cucumber/features/step_definitions/snapshots.rb | 22 ++++++++++++----------
 cucumber/features/support/config.rb             |  1 +
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/cucumber/features/step_definitions/snapshots.rb b/cucumber/features/step_definitions/snapshots.rb
index 9108c0b..956b9cc 100644
--- a/cucumber/features/step_definitions/snapshots.rb
+++ b/cucumber/features/step_definitions/snapshots.rb
@@ -4,8 +4,8 @@ def checkpoints
       :description => "I have started Debian Installer and stopped at the Tasksel prompt",
       :parent_checkpoint => nil,
       :steps => [
-	'I create a 8 GiB disk named "target"',
-	'I plug ide drive "target"',
+	'I create a 8 GiB disk named "'+JOB_NAME+'"',
+	'I plug ide drive "'+JOB_NAME+'"',
 	'I accept that the machine is slooooow',
 	'I start the computer',
 	'I boot to the d-i splash screen',
@@ -34,6 +34,8 @@ def checkpoints
       :description => "I have started GUI Debian Installer and stopped at the Tasksel prompt",
       :parent_checkpoint => 'boot-d-i',
       :steps => [
+	'I create a 8 GiB disk named "'+JOB_NAME+'"',
+	'I plug ide drive "'+JOB_NAME+'"',
 	'I accept that the machine is slooooow',
 	'I select gui mode and wait for the remote shell',
 	'in gui mode I select British English',
@@ -59,7 +61,7 @@ def checkpoints
 	'in text mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
 
@@ -74,7 +76,7 @@ def checkpoints
 	'in gui mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
 
@@ -89,7 +91,7 @@ def checkpoints
 	'in text mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
 
@@ -104,7 +106,7 @@ def checkpoints
 	'in gui mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
 
@@ -119,7 +121,7 @@ def checkpoints
 	'in text mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
 
@@ -134,7 +136,7 @@ def checkpoints
 	'in gui mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
 
@@ -149,7 +151,7 @@ def checkpoints
 	'in text mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
 
@@ -164,7 +166,7 @@ def checkpoints
 	'in gui mode I allow reboot after the install is complete',
 	'I wait for the reboot',
 	'I power off the computer',
-	'the computer is set to boot from ide drive "target"',
+	'the computer is set to boot from ide drive "'+JOB_NAME+'"',
       ],
     },
   }
diff --git a/cucumber/features/support/config.rb b/cucumber/features/support/config.rb
index 6043224..d335004 100644
--- a/cucumber/features/support/config.rb
+++ b/cucumber/features/support/config.rb
@@ -59,6 +59,7 @@ TAILS_ISO = ENV['ISO']
 OLD_TAILS_ISO = ENV['OLD_ISO'] || TAILS_ISO
 TIME_AT_START = Time.now
 ARTIFACTS_DIR = $config['TMPDIR'] + "/results"
+JOB_NAME = ENV['JOB_NAME']
 
 # Constants that are statically initialized.
 CONFIGURED_KEYSERVER_HOSTNAME = 'hkps.pool.sks-keyservers.net'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list