Timed out. search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/parameterized/parameterized.py in standalone_func (arguments ▶)
- @classmethod
- def param_as_standalone_func(cls, p, func, name):
- @wraps(func)
- def standalone_func(*a):
- return func(*(a + p.args), **p.kwargs)
- standalone_func.__name__ = name
- # place_as is used by py.test to determine what source file should be
- # used for this test.
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instances.py in test_snapshotting_stopped (arguments ▶)
- key_path, instance = self._create_instance(volume_type, virt_type)
- check_volumes(self, instance, key_path, volume_type, virt_type)
- @common.parametrize_with_volume_types(constants.VIRT_TYPES)
- def test_snapshotting_stopped(self, volume_type, virt_type):
- self._instance_snapshotting(volume_type, virt_type)
- @common.parametrize_with_sio_volume_type(constants.VIRT_TYPES)
- def test_snapshotting_running(self, volume_type, virt_type):
- self._instance_snapshotting(volume_type, virt_type, running=True)
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instances.py in _instance_snapshotting (arguments ▶)
- return key_path, instance
- def _instance_snapshotting(self, volume_type, virt_type, running=False, no_reboot=False):
- """Helps snapshot instance with specified type."""
- key_path, instance = self._create_instance(volume_type, virt_type)
- # Performs sync filesystems on all attached drives
- utils.ssh(instance.ip_address, key_path, "/bin/sync")
- if not running:
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instances.py in _create_instance (arguments ▶)
- """Helps run instance with specified type."""
- key_path, instance = self.run_instance_from_template(virtualization_type=virt_type,
- volume_type=volume_type)
- utils.wait_long(
- lambda: utils.ssh_test(instance.ip_address, key_path) == instance.id)
- return key_path, instance
- def _instance_snapshotting(self, volume_type, virt_type, running=False, no_reboot=False):
- """Helps snapshot instance with specified type."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments ▶)
- def wait_long(func, *args, **kwargs):
- """Fail unless func return success within the long timeout"""
- return wait(5 * constants.MINUTE_SECONDS, func, *args, **kwargs)
- def wait_long_enough(func, *args, **kwargs):
- """Fail unless func return success within the enough long timeout."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments ▶)
- result = func(*args, **kwargs)
- if result:
- return result
- time.sleep(min(timeout, 0.1))
- raise exceptions.TimeoutException()
- def wait_short(func, *args, **kwargs):
- """Fail unless func return success within the timeout"""