Feature #9040

Encapsulate config.rb into TestSuiteConfig class

Added by anonym 2015-03-09 13:52:11 . Updated 2016-10-07 13:34:01 .

Status:
Confirmed
Priority:
Normal
Assignee:
anonym
Category:
Test suite
Target version:
Start date:
2015-03-09
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

Similar to Feature #9030, it’s potentially problematic to define stuff in the global context except classes and modules. We could fix this pretty easily by implementing a TestSuiteConfig class that inherits from Hash, and does the YAML stuff in initialize and then do $config = TestSuiteConfig.new in the global context (which is fine). That wouldn’t require any change to code using $config anywhere else.

We probably should move the constants into this class too, which would require e.g. TAILS_ISO to be changed to TestSuiteConfig.TAILS_ISO which actually looks like a good thing since it’s easier to understand that the constant is part of the test suite’s configuration.


Subtasks


History

#1 Updated by anonym 2015-09-23 09:12:01

#2 Updated by anonym 2015-10-05 13:09:33

  • Target version changed from Tails_1.7 to Tails_1.8

#3 Updated by intrigeri 2015-12-05 14:09:13

  • Target version changed from Tails_1.8 to Tails_2.2

Postponing to after January, since times will be a bit crazy until then.

#4 Updated by anonym 2016-02-05 21:01:39

  • Target version changed from Tails_2.2 to Tails_2.5

#5 Updated by intrigeri 2016-07-13 12:26:14

  • Target version changed from Tails_2.5 to Tails_2.7

#6 Updated by anonym 2016-10-07 13:34:01

  • Target version deleted (Tails_2.7)