Skip to content

Commit 8f3de3f

Browse files
committed
Make tests headless with the help of xvfb
1 parent 7c18c36 commit 8f3de3f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

install-dev-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if type apt-get >/dev/null ; then
1313
CHROMEDRIVER="chromedriver"
1414
fi
1515
sudo apt-get install libxml2-dev libxml2-utils libxslt1-dev python-dev \
16-
$BROWSERS zip sqlite3 python-pip libcurl4-openssl-dev \
16+
$BROWSERS zip sqlite3 python-pip libcurl4-openssl-dev xvfb \
1717
libssl-dev $CHROMEDRIVER
1818
elif type brew >/dev/null ; then
1919
brew list python &>/dev/null || brew install python

test/chromium.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ else
3434
./makecrx.sh
3535
echo "running tests"
3636
CRX_NAME="`ls -tr pkg/*.crx | tail -1`"
37-
python2.7 test/chromium/script.py $CRX_NAME
37+
xvfb-run python2.7 test/chromium/script.py $CRX_NAME
3838
fi

test/firefox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if [ "$1" == "--justrun" ]; then
6868
fi
6969
else
7070
echo "running tests"
71-
cfx test --profiledir="$PROFILE_DIRECTORY" --verbose
71+
xvfb-run cfx test --profiledir="$PROFILE_DIRECTORY" --verbose
7272
fi
7373

7474
popd

0 commit comments

Comments
 (0)