From fa97b089d6a62db14ee19acb796b336b3690fd42 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Jan 24 2019 16:13:52 +0000 Subject: Change runtest for gedit. --- diff --git a/gedit/runtest.sh b/gedit/runtest.sh index 66dd478..cd19d98 100755 --- a/gedit/runtest.sh +++ b/gedit/runtest.sh @@ -1,23 +1,15 @@ #!/bin/bash +source common_steps/gdm-control.sh set -x -sudo service gdm stop -env GIT_SSL_NO_VERIFY=true git submodule update --init --recursive -# Here we store exit code for the task in tmp file -# Because we need a report -# TODO: write a better rhts-run-simple-test - -BRR=/etc/yum.repos.d/rhel-8-buildroot.repo -echo "[rhel-8-buildroot]" > $BRR -echo "name=rhel-8-buildroot" >> $BRR -echo "baseurl=http://download.eng.rdu2.redhat.com/rhel-8/rel-eng/BUILDROOT-8/BUILDROOT-8.0-RHEL-8-20181005.1/compose/Buildroot/x86_64/os/" >> $BRR -echo "enabled=1" >> $BRR -echo "gpgcheck=0" >> $BRR -echo "skip_if_unavailable=1" >> $BRR -echo "priority=999" >> $BRR dnf install -y gedit-plugins* -rm -rf /home/test/Videos/* -sudo -u test dogtail-run-headless-next "behave -t $1 -k -f html -o /tmp/report_$TEST.html -f plain"; rc=$? + +start-gdm +sudo -u test dogtail-run-headless-next "behave -t $1 -k -f html -o /tmp/report_$TEST.html -f plain"; + +rc=$? +stop-gdm + RESULT="FAIL" if [ $rc -eq 0 ]; then RESULT="PASS"