mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-16 18:14:40 +02:00
now run-tests.py deals with Xvfb instead of scripts inside fwbuilder module
This commit is contained in:
@@ -2,22 +2,11 @@
|
||||
|
||||
commands=$@
|
||||
|
||||
|
||||
for directory in `find . -maxdepth 1 -type d -regex '\./[A-Za-z0-9\-\_]*'`
|
||||
do
|
||||
cd $directory
|
||||
[ ! -e Makefile ] && qmake -spec $QMAKESPEC
|
||||
|
||||
PID=""
|
||||
[ -z "$DISPLAY" ] && {
|
||||
Xvfb :1 &
|
||||
PID=$!
|
||||
export DISPLAY=":1"
|
||||
}
|
||||
$commands; TEST_STATUS=$?
|
||||
[ -n "$PID" ] && kill $PID
|
||||
[ $TEST_STATUS ] || exit 0
|
||||
|
||||
$commands || exit 1
|
||||
cd -
|
||||
done
|
||||
|
||||
|
||||
@@ -2,16 +2,11 @@
|
||||
|
||||
commands=$@
|
||||
|
||||
Xvfb :1 &
|
||||
PID=$!
|
||||
export DISPLAY=":1"
|
||||
|
||||
for directory in `find . -maxdepth 1 -type d -regex '\./[A-Za-z0-9\-\_]*'`
|
||||
do
|
||||
cd $directory
|
||||
[ ! -e Makefile ] && qmake -spec $QMAKESPEC
|
||||
$commands || { kill $PID; exit 1; }
|
||||
$commands || exit 1;
|
||||
cd -
|
||||
done
|
||||
|
||||
kill $PID || exit 0
|
||||
|
||||
Reference in New Issue
Block a user