Manually invoke Xvfb, don't depend on the xvfb plugin (#5132)
authorJo Shields <directhex@apebox.org>
Wed, 28 Jun 2017 17:41:25 +0000 (18:41 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 28 Jun 2017 17:41:25 +0000 (19:41 +0200)
scripts/ci/run-test-default.sh

index 9e41e894d5511b7bb505f473981ffd9813a8eaf6..1529f2cf391800ea750bc0543531f4b4dca5c0d1 100755 (executable)
@@ -25,8 +25,8 @@ fi
 if [[ ${label} == osx-* ]] || [[ ${label} == w* ]]
 then ${TESTCMD} --label=Windows.Forms --skip;
 else
-    if make -C mcs/class/System.Windows.Forms test-simple;
-    then ${TESTCMD} --label=Windows.Forms --timeout=5m make -w -C mcs/class/System.Windows.Forms run-test
+    if xvfb-run -a -- make -C mcs/class/System.Windows.Forms test-simple;
+    then ${TESTCMD} --label=Windows.Forms --timeout=5m xvfb-run -a -- make -w -C mcs/class/System.Windows.Forms run-test
     else echo "The simple test failed (maybe because of missing X server), skipping test suite." && ${TESTCMD} --label=Windows.Forms --skip; fi
 fi
 ${TESTCMD} --label=System.Data --timeout=5m make -w -C mcs/class/System.Data run-test