summaryrefslogtreecommitdiffstats
path: root/cucumber/features
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-05-26 21:22:47 +0200
committerPhilip Hands <phil@hands.com>2016-05-26 21:22:47 +0200
commit5321d3ad2a10788de04de728ff4c5bb093e3487e (patch)
tree047c77ce62d4e8760f18e47a0347ddaca508b932 /cucumber/features
parent2e0dab2ada4172a8e3889dd6ddba0b26df30fb57 (diff)
downloadjenkins.debian.net-5321d3ad2a10788de04de728ff4c5bb093e3487e.tar.xz
lvc: name the target volume after the job
Diffstat (limited to 'cucumber/features')
-rw-r--r--cucumber/features/step_definitions/snapshots.rb22
-rw-r--r--cucumber/features/support/config.rb1
2 files changed, 13 insertions, 10 deletions
diff --git a/cucumber/features/step_definitions/snapshots.rb b/cucumber/features/step_definitions/snapshots.rb
index 9108c0b5..956b9ccf 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 60432246..d335004d 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'