diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | scripts/run-dogtail-tests | 14 |
2 files changed, 14 insertions, 1 deletions
@@ -3,5 +3,6 @@ install/ build/ source/ logs/*.log +logs/*.tar logs/all-logs.tar.bz2 scripts/list-outputs diff --git a/scripts/run-dogtail-tests b/scripts/run-dogtail-tests index 4576bc4..dcef0b8 100755 --- a/scripts/run-dogtail-tests +++ b/scripts/run-dogtail-tests @@ -3,6 +3,7 @@ scriptsdir=`dirname "$0"` rootdir=`dirname "$scriptsdir"` testsdir=$rootdir/tests +logsdir=$rootdir/logs display=:99 resolution=1024x768x16 @@ -24,7 +25,9 @@ export SUGAR_LOGGER_LEVEL=debug export GTK_MODULES=gail:atk-bridge export SUGAR_PROFILE=dogtail -rm -rf ~/.sugar/dogtail +PROFILE_PATH=~/.sugar/dogtail + +rm -rf $PROFILE_PATH xinit $scriptsdir/xinitrc -- $xserver & xinitpid=$! @@ -36,4 +39,13 @@ result=$? kill $xinitpid +if [ -z "$SUGAR_BUILDBOT" ]; then + LOGFILE=$logsdir/test-`date +%Y%m%d-%H%M%S`.tar +else + LOGFILE=$logsdir/test.tar +fi + +cd $PROFILE_PATH/logs +tar cvf $LOGFILE *.log + exit $result |