fixed join issue

This commit is contained in:
Muzahid 2022-02-11 12:36:42 +05:30
parent 52aec8a8e6
commit a337147f43
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA

View File

@ -171,8 +171,8 @@ def add_child_build_sh_step(build_factory, directory=".buildbot"):
""" """
build_factory.addStep( build_factory.addStep(
steps.ShellCommand( steps.ShellCommand(
name="build_" + util.Interpolate("%(prop:jobname)s"), name=util.Interpolate("build_%(prop:jobname)s"),
command=["bash", "-c", join(directory, util.Interpolate("%(prop:jobname)s"), "build.sh")], command=util.Interpolate("%(kw:directory)s/%(prop:jobname)s/test.sh", directory=directory),
doStepIf=is_build_script_available, doStepIf=is_build_script_available,
hideStepIf=isnt_build_script_available, hideStepIf=isnt_build_script_available,
) )
@ -185,8 +185,8 @@ def add_child_test_sh_step(build_factory, directory=".buildbot"):
""" """
build_factory.addStep( build_factory.addStep(
steps.ShellCommand( steps.ShellCommand(
name="test_" + util.Interpolate("%(prop:jobname)s"), name= util.Interpolate("test_%(prop:jobname)s"),
command=["bash", "-c", join(directory, util.Interpolate("%(prop:jobname)s"), "test.sh")], command=util.Interpolate("%(kw:directory)s/%(prop:jobname)s/test.sh", directory=directory),
doStepIf=is_test_script_available, doStepIf=is_test_script_available,
hideStepIf=isnt_test_script_available, hideStepIf=isnt_test_script_available,
) )