def test_run_bounded_finite(self):
     osextras.run_bounded(1, ["sh", "-c", "while :; do sleep 3600; done"])
 def test_run_bounded_runs(self):
     self.use_temp_dir()
     sentinel = os.path.join(self.temp_dir, "foo")
     osextras.run_bounded(3600, ["touch", sentinel])
     self.assertTrue(os.path.exists(sentinel))
def check_installable(config):
    _prepare_check_installable(config)
    # Sometimes this inexplicably hangs on a futex. We'll give it thirty
    # seconds and then kill it.
    run_bounded(30, _check_installable_command(config))
 def test_run_bounded_finite(self):
     osextras.run_bounded(.1, ["sh", "-c", "while :; do sleep 3600; done"])
 def test_run_bounded_runs(self):
     sentinel = os.path.join(self.temp_dir, "foo")
     osextras.run_bounded(3600, ["touch", sentinel])
     self.assertTrue(os.path.exists(sentinel))
def check_installable(config):
    _prepare_check_installable(config)
    # Sometimes this inexplicably hangs on a futex. We'll give it thirty
    # seconds and then kill it.
    run_bounded(30, _check_installable_command(config))