[gjs: 1/2] CI: fix a bug in the test script
- From: Gitlab Administrative User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/2] CI: fix a bug in the test script
- Date: Wed, 8 Nov 2017 03:00:35 +0000 (UTC)
commit 89909a09880783c44efca0ef7e27059c9f00faf0
Author: Claudio André <claudioandre br gmail com>
Date: Tue Nov 7 15:18:36 2017 -0200
CI: fix a bug in the test script
It was not checking properly when the environment should be changed.
test/test-ci.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/test-ci.sh b/test/test-ci.sh
index ab4c34e..decfd92 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -81,11 +81,11 @@ function do_Set_Env(){
export XDG_CACHE_HOME=/cwd/.cache
export JHBUILD_RUN_AS_ROOT=1
- if [[ -z $DISPLAY ]]; then
+ if [[ -z "${DISPLAY}" ]]; then
export DISPLAY=":0"
fi
- if [[ -n "$SHELL" ]]; then
+ if [[ -z "${SHELL}" || $BASE == "ubuntu" ]]; then
export SHELL=/bin/bash
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]