@@ -14500,15 +14500,13 @@ def setUp(self, masterqa_mode=False):
1450014500 self.__skip_reason = None
1450114501 self.testcase_manager.insert_testcase_data(data_payload)
1450214502 self.case_start_time = int(time.time() * 1000.0)
14503- self.__activate_virtual_display_as_needed()
1450414503 elif hasattr(self, "is_behave") and self.is_behave:
1450514504 self.__initialize_variables()
14506- self.__activate_virtual_display_as_needed()
1450714505 elif hasattr(self, "is_nosetest") and self.is_nosetest:
1450814506 pass # Setup performed in plugins for pynose
1450914507 else:
14510- # Pure Python run. Eg. SB() Manager
14511- self.__activate_virtual_display_as_needed()
14508+ # Pure Python run. ( Eg. SB() and Driver() Managers)
14509+ pass # Variables initialized in respective plugins
1451214510
1451314511 # Verify SeleniumBase is installed successfully, and used correctly
1451414512 if not hasattr(self, "browser"):
@@ -14696,6 +14694,10 @@ def setUp(self, masterqa_mode=False):
1469614694 )
1469714695 raise Exception(message)
1469814696
14697+ if not hasattr(self, "is_nosetest") or not self.is_nosetest:
14698+ # Xvfb Virtual Display activation for Linux
14699+ self.__activate_virtual_display_as_needed()
14700+
1469914701 # Dashboard pre-processing:
1470014702 if self.dashboard:
1470114703 if self._multithreaded:
0 commit comments