Message ID | 1441986924-26689-52-git-send-email-damien.lespiau@intel.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/patchwork/tests/browser.py b/patchwork/tests/browser.py index d13c770..da0cb9b 100644 --- a/patchwork/tests/browser.py +++ b/patchwork/tests/browser.py @@ -91,6 +91,10 @@ class SeleniumTestCase(StaticLiveServerTestCase): _SCREENSHOT_DIR = os.path.dirname(__file__) + '/../../test_screenshots' def setUp(self): + self.skip = os.getenv('PATCHWORK_SKIP_BROWSER_TESTS', None) + if self.skip: + self.skipTest("Disabled by environment variable") + super(SeleniumTestCase, self).setUp() self.browser = os.getenv('SELENIUM_BROWSER', 'chrome')
It's a bit more convoluted to setup the test environment to work with selenium (eg. needs a browser installed and Xorg running, ...). It's possible someone would want to skip those. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> --- patchwork/tests/browser.py | 4 ++++ 1 file changed, 4 insertions(+)