From 5321d3ad2a10788de04de728ff4c5bb093e3487e Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Thu, 26 May 2016 21:22:47 +0200 Subject: 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 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' -- cgit v1.2.3-70-g09d2