Skip to content

Commit

Permalink
PRJ: deactivate virtual x server for osx
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLP committed Sep 27, 2017
1 parent 35581d9 commit e36e9e1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions testbeam_analysis/testing/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class TestExamples(unittest.TestCase):

@classmethod
def setUpClass(cls):
# Virtual X server for plots under headless LINUX travis testing needed
if os.getenv('TRAVIS', False):
# virtual X server for plots under headless LINUX travis testing is needed
if os.getenv('TRAVIS', False) and os.getenv('TRAVIS_OS_NAME', False) == 'linux':
from xvfbwrapper import Xvfb
cls.vdisplay = Xvfb()
cls.vdisplay.start()
Expand Down
3 changes: 2 additions & 1 deletion testbeam_analysis/testing/test_hit_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class TestHitAnalysis(unittest.TestCase):

@classmethod
def setUpClass(cls):
if os.getenv('TRAVIS', False):
# virtual X server for plots under headless LINUX travis testing is needed
if os.getenv('TRAVIS', False) and os.getenv('TRAVIS_OS_NAME', False) == 'linux':
from xvfbwrapper import Xvfb # virtual X server for plots under headless LINUX travis testing is needed
cls.vdisplay = Xvfb()
cls.vdisplay.start()
Expand Down
3 changes: 2 additions & 1 deletion testbeam_analysis/testing/test_kalman.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class TestTrackAnalysis(unittest.TestCase):

@classmethod
def setUpClass(cls):
if os.getenv('TRAVIS', False):
# virtual X server for plots under headless LINUX travis testing is needed
if os.getenv('TRAVIS', False) and os.getenv('TRAVIS_OS_NAME', False) == 'linux':
from xvfbwrapper import Xvfb # virtual X server for plots under headless LINUX travis testing is needed
cls.vdisplay = Xvfb()
cls.vdisplay.start()
Expand Down
3 changes: 2 additions & 1 deletion testbeam_analysis/testing/test_result_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class TestResultAnalysis(unittest.TestCase):

@classmethod
def setUpClass(cls):
if os.getenv('TRAVIS', False):
# virtual X server for plots under headless LINUX travis testing is needed
if os.getenv('TRAVIS', False) and os.getenv('TRAVIS_OS_NAME', False) == 'linux':
from xvfbwrapper import Xvfb # virtual X server for plots under headless LINUX travis testing is needed
cls.vdisplay = Xvfb()
cls.vdisplay.start()
Expand Down
5 changes: 2 additions & 3 deletions testbeam_analysis/testing/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ class TestHitAnalysis(unittest.TestCase):

@classmethod
def setUpClass(self):
if os.getenv('TRAVIS', False):
# virtual X server for plots under headless LINUX travis testing is
# needed
# virtual X server for plots under headless LINUX travis testing is needed
if os.getenv('TRAVIS', False) and os.getenv('TRAVIS_OS_NAME', False) == 'linux':
from xvfbwrapper import Xvfb
self.vdisplay = Xvfb()
self.vdisplay.start()
Expand Down
4 changes: 2 additions & 2 deletions testbeam_analysis/testing/test_track_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class TestTrackAnalysis(unittest.TestCase):

@classmethod
def setUpClass(cls):
if os.getenv('TRAVIS', False):
from xvfbwrapper import Xvfb # virtual X server for plots under headless LINUX travis testing is needed
# virtual X server for plots under headless LINUX travis testing is needed
if os.getenv('TRAVIS', False) and os.getenv('TRAVIS_OS_NAME', False) == 'linux':
cls.vdisplay = Xvfb()
cls.vdisplay.start()
cls.output_folder = 'tmp_track_test_output'
Expand Down

0 comments on commit e36e9e1

Please sign in to comment.