Commit 2fb33093 authored by Tails developers's avatar Tails developers

Introduce a YAML-based test suite configuration system.

parent 26e57117
......@@ -49,3 +49,6 @@
# Files generated during the test suite
# The test suite's local configuration file
require 'fileutils'
require 'yaml'
require "#{Dir.pwd}/features/support/helpers/misc_helpers.rb"
# These two files deal with options like some of the settings passed
# to the `run_test_suite` script, and "secrets" like credentials
# (passwords, SSH keys) to be used in tests.
DEFAULTS_CONFIG_FILE = "#{Dir.pwd}/features/config/defaults.yml"
LOCAL_CONFIG_FILE = "#{Dir.pwd}/features/config/local.yml"
assert File.exists?(DEFAULTS_CONFIG_FILE)
$config = YAML.load(
if File.exists?(LOCAL_CONFIG_FILE)
# Options passed to the `run_test_suite` script will always take
# precedence.
# Dynamic
$tails_iso = ENV['ISO'] || raise "No ISO set with --iso"
$old_tails_iso = ENV['OLD_ISO'] || raise "No old ISO set with --old-iso"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment