From 722befea90d529b099bcb03bd7ed6e8320ce83f7 Mon Sep 17 00:00:00 2001 From: Castulo Martinez Date: Wed, 15 Aug 2018 16:06:15 -0700 Subject: [PATCH] Export more useful variables in a test environment The set_env_variables function exports different variables that are dependent of a specific test environment. This commit adds a few more variables that can be used to reduce the typing when writing tests. --- test/functional/testlib.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/functional/testlib.bash b/test/functional/testlib.bash index 422c7613..8e3374cd 100644 --- a/test/functional/testlib.bash +++ b/test/functional/testlib.bash @@ -163,7 +163,11 @@ set_env_variables() { export SWUPD_OPTS="-S $path/$env_name/state -p $path/$env_name/target-dir -F staging -u file://$path/$env_name/web-dir -C $FUNC_DIR/Swupd_Root.pem -I" export SWUPD_OPTS_NO_CERT="-S $path/$env_name/state -p $path/$env_name/target-dir -F staging -u file://$path/$env_name/web-dir" export SWUPD_OPTS_MIRROR="-p $path/$env_name/target-dir" + export SWUPD_OPTS_NO_FMT="-S $path/$env_name/state -p $path/$env_name/target-dir -u file://$path/$env_name/web-dir -C $FUNC_DIR/Swupd_Root.pem -I" export TEST_DIRNAME="$path"/"$env_name" + export WEBDIR="$env_name"/web-dir + export TARGETDIR="$env_name"/target-dir + export STATEDIR="$env_name"/state }