tests/run.sh: do not export XDG_CONFIG_HOME (#2876)

Only set it for the "awesome" process invocation.
This commit is contained in:
Daniel Hahler 2019-09-13 17:55:27 +02:00 committed by GitHub
parent 9b86a03b66
commit 13ea02eeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,6 @@ fi
# Add test dir (for _runner.lua).
# shellcheck disable=SC2206
awesome_options=($AWESOME_OPTIONS --search lib --search "$this_dir")
export XDG_CONFIG_HOME="$build_dir"
# Cleanup on errors / aborting.
cleanup() {
@ -178,6 +177,7 @@ start_awesome() {
DISPLAY="$D" SOURCE_DIRECTORY="$source_dir" \
AWESOME_THEMES_PATH="$AWESOME_THEMES_PATH" \
AWESOME_ICON_PATH="$AWESOME_ICON_PATH" \
XDG_CONFIG_HOME="$build_dir" \
timeout "$TEST_TIMEOUT" "$AWESOME" -c "$RC_FILE" "${awesome_options[@]}" > "$awesome_log" 2>&1 &
awesome_pid=$!
cd - >/dev/null