From 7dfd05464983ca5c773f7764448a23968314a424 Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Sat, 13 Jul 2013 09:38:05 -0600 Subject: [PATCH] Don't use deprecated name SetProperty in regression tests. --- .../test/regressions/test_shell_command_properties.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/master/buildbot/test/regressions/test_shell_command_properties.py b/master/buildbot/test/regressions/test_shell_command_properties.py index 38b5446a433..8c575a34d93 100644 --- a/master/buildbot/test/regressions/test_shell_command_properties.py +++ b/master/buildbot/test/regressions/test_shell_command_properties.py @@ -15,7 +15,7 @@ from twisted.trial import unittest -from buildbot.steps.shell import ShellCommand, SetProperty +from buildbot.steps.shell import ShellCommand, SetPropertyFromCommand from buildbot.process.properties import WithProperties, Properties from buildbot.process.factory import BuildFactory from buildbot.sourcestamp import SourceStamp @@ -76,7 +76,7 @@ def mergeReasons(self, others): class TestShellCommandProperties(unittest.TestCase): def testCommand(self): f = BuildFactory() - f.addStep(SetProperty(command=["echo", "value"], property="propname")) + f.addStep(SetPropertyFromCommand(command=["echo", "value"], property="propname")) f.addStep(ShellCommand(command=["echo", WithProperties("%(propname)s")])) ss = SourceStamp() @@ -94,7 +94,7 @@ def testCommand(self): class TestSetProperty(unittest.TestCase): def testGoodStep(self): f = BuildFactory() - f.addStep(SetProperty(command=["echo", "value"], property="propname")) + f.addStep(SetPropertyFromCommand(command=["echo", "value"], property="propname")) ss = SourceStamp() @@ -109,8 +109,8 @@ def testGoodStep(self): def testErrorBothSet(self): self.assertRaises(config.ConfigErrors, - SetProperty, command=["echo", "value"], property="propname", extract_fn=lambda x:{"propname": "hello"}) + SetPropertyFromCommand, command=["echo", "value"], property="propname", extract_fn=lambda x:{"propname": "hello"}) def testErrorNoneSet(self): self.assertRaises(config.ConfigErrors, - SetProperty, command=["echo", "value"]) + SetPropertyFromCommand, command=["echo", "value"])