"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/test/integration/interop/test_interruptcommand.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

test_interruptcommand.py  (buildbot-3.0.2):test_interruptcommand.py  (buildbot-3.1.0)
skipping to change at line 28 skipping to change at line 28
from buildbot.process.results import CANCELLED from buildbot.process.results import CANCELLED
from buildbot.test.util.decorators import flaky from buildbot.test.util.decorators import flaky
from buildbot.test.util.integration import RunMasterBase from buildbot.test.util.integration import RunMasterBase
from buildbot.util import asyncSleep from buildbot.util import asyncSleep
class InterruptCommand(RunMasterBase): class InterruptCommand(RunMasterBase):
"""Make sure we can interrupt a command""" """Make sure we can interrupt a command"""
@flaky(bugNumber=4404, onPlatform='win32') @flaky(bugNumber=4404, onPlatform='win32')
@defer.inlineCallbacks @defer.inlineCallbacks
def test_setProp(self): def test_interrupt(self):
yield self.setupConfig(masterConfig()) yield self.setupConfig(masterConfig())
build = yield self.doForceBuild(wantSteps=True) build = yield self.doForceBuild(wantSteps=True)
self.assertEqual(build['steps'][-1]['results'], CANCELLED) self.assertEqual(build['steps'][-1]['results'], CANCELLED)
class InterruptCommandPb(InterruptCommand): class InterruptCommandPb(InterruptCommand):
proto = "pb" proto = "pb"
# master configuration # master configuration
num_reconfig = 0
def masterConfig(): def masterConfig():
global num_reconfig
num_reconfig += 1
c = {} c = {}
from buildbot.plugins import schedulers, steps, util from buildbot.plugins import schedulers, steps, util
class SleepAndInterrupt(steps.ShellSequence): class SleepAndInterrupt(steps.ShellSequence):
@defer.inlineCallbacks @defer.inlineCallbacks
def run(self): def run(self):
if self.worker.worker_system == "nt": if self.worker.worker_system == "nt":
sleep = "waitfor SomethingThatIsNeverHappening /t 100 >nul 2>&1" sleep = "waitfor SomethingThatIsNeverHappening /t 100 >nul 2>&1"
else: else:
sleep = ["sleep", "100"] sleep = ["sleep", "100"]
 End of changes. 3 change blocks. 
5 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)