This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, 6.1 has been updated
       via  c8e3eecad28256b30517ec11707edd4ee24c0088 (commit)
      from  140c64ee85c58dd89dcdedacb1b22debdbfa0fe8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=c8e3eecad28256b30517ec11707edd4ee24c0088

commit c8e3eecad28256b30517ec11707edd4ee24c0088
Author: Roland Mas <[email protected]>
Date:   Wed Dec 9 12:47:33 2020 +0100

    Try fixing testsuite

diff --git a/tests/func/SeleniumForge.php b/tests/func/SeleniumForge.php
index 1df87c5..8c3d496 100644
--- a/tests/func/SeleniumForge.php
+++ b/tests/func/SeleniumForge.php
@@ -87,6 +87,8 @@ require_once $config;
 
 @include_once '/usr/local/share/php/vendor/autoload.php';
 
+use PHPUnit\Extensions\Selenium2TestCase\ScreenshotListener;
+
 abstract class FForge_SeleniumTestCase extends 
PHPUnit\Extensions\Selenium2TestCase
 {
        public $logged_in = false ;
@@ -103,6 +105,9 @@ abstract class FForge_SeleniumTestCase extends 
PHPUnit\Extensions\Selenium2TestC
                        $this->captureScreenshotOnFailure = true;
                        $this->screenshotPath = getenv('SELENIUM_RC_DIR');
                        $this->screenshotUrl = getenv('SELENIUM_RC_URL');
+
+                       $this->listener = new 
ScreenshotListener(getenv('SELENIUM_RC_DIR'));
+
                }
 
                $this->setBrowser('firefox');
@@ -114,7 +119,12 @@ abstract class FForge_SeleniumTestCase extends 
PHPUnit\Extensions\Selenium2TestC
                // Use a sensible default background (instead of Selenium's 
criminal default to black)
                // (future-proof - 
https://github.com/giorgiosironi/phpunit-selenium/commit/07e50f74f3782ce8781527653e6c79aeefd94ada)
                $this->screenshotBgColor = '#CCFFDD';
-       }
+                         }
+
+       public function onNotSuccessfulTest($e) {
+        $this->listener->addError($this, $e, null);
+            parent::onNotSuccessfulTest($e);
+        }
 
        /**
         * Load existing fixture.

-----------------------------------------------------------------------

Summary of changes:
 tests/func/SeleniumForge.php | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to