def _ensure_test_index_exists(self, input_dict, clientdir): """ Since Drone fires up a new devpi server for each test run, we'll need to create an index before we can upload. """ t_vargs = input_dict['vargs'] run_devpi.select_server(t_vargs['server'], clientdir=clientdir) run_devpi.login(t_vargs['username'], t_vargs['password'], clientdir=self.default_clientdir) try: run_devpi.create_index(t_vargs['index'], clientdir=clientdir) except SystemExit: pass
def _ensure_test_index_exists(self, clientdir): """ Since Drone fires up a new devpi server for each test run, we'll need to create an index before we can upload. """ run_devpi.select_server(plugin_input.values['SERVER'], clientdir=clientdir) run_devpi.login(plugin_input.values['USERNAME'], plugin_input.values['PASSWORD'], clientdir=self.default_clientdir) try: run_devpi.create_index(plugin_input.values['INDEX'], clientdir=clientdir) except SystemExit: pass
def _wait_for_devpi_to_start(cls, clientdir): """ devpi is a bit... pokey while starting. We'll just harass it until it responds before doing the rest of the tests. """ retries_left = 30 while retries_left > 0: try: run_devpi.select_server(plugin_input.values['SERVER'], clientdir=clientdir) except SystemExit: retries_left -= 1 time.sleep(1) continue return
def _wait_for_devpi_to_start(cls, input_dict, clientdir): """ devpi is a bit... pokey while starting. We'll just harass it until it responds before doing the rest of the tests. """ retries_left = 30 while retries_left > 0: try: run_devpi.select_server( input_dict['vargs']['server'], clientdir=clientdir) except SystemExit: retries_left -= 1 time.sleep(1) continue return
def _ensure_test_index_exists(self, clientdir): """ Since Drone fires up a new devpi server for each test run, we'll need to create an index before we can upload. """ run_devpi.select_server( plugin_input.values['SERVER'], clientdir=clientdir) run_devpi.login( plugin_input.values['USERNAME'], plugin_input.values['PASSWORD'], clientdir=self.default_clientdir) try: run_devpi.create_index( plugin_input.values['INDEX'], clientdir=clientdir) except SystemExit: pass
def _ensure_test_index_exists(self, input_dict, clientdir): """ Since Drone fires up a new devpi server for each test run, we'll need to create an index before we can upload. """ t_varargs = input_dict['vargs'] run_devpi.select_server( t_varargs['server'], clientdir=clientdir) run_devpi.login( t_varargs['username'], t_varargs['password'], clientdir=self.default_clientdir) try: run_devpi.create_index( t_varargs['index'], clientdir=clientdir) except SystemExit: pass