Upload even if tests fail

- we still may want either the build artifact or a video of the tests
  even if tests fail
This commit is contained in:
Peter Šurda 2022-08-09 23:09:15 +08:00
parent 4bf6fb73b2
commit 514c584609
Signed by untrusted user: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -56,7 +56,9 @@ def add_child_sh_steps(build_factory, directory=".buildbot"):
build_factory.addStep( build_factory.addStep(
steps.ShellCommand( steps.ShellCommand(
name=util.Interpolate("build_%(prop:jobname)s"), name=util.Interpolate("build_%(prop:jobname)s"),
command=util.Interpolate("%(kw:directory)s/%(prop:jobname)s/build.sh", directory=directory), command=util.Interpolate("%(kw:directory)s/"
"%(prop:jobname)s/build.sh",
directory=directory),
doStepIf=is_build_script_available, doStepIf=is_build_script_available,
hideStepIf=isnt_build_script_available, hideStepIf=isnt_build_script_available,
) )
@ -65,7 +67,11 @@ def add_child_sh_steps(build_factory, directory=".buildbot"):
build_factory.addStep( build_factory.addStep(
steps.ShellCommand( steps.ShellCommand(
name=util.Interpolate("test_%(prop:jobname)s"), name=util.Interpolate("test_%(prop:jobname)s"),
command=util.Interpolate("%(kw:directory)s/%(prop:jobname)s/test.sh", directory=directory), command=util.Interpolate("%(kw:directory)s/"
"%(prop:jobname)s/test.sh",
directory=directory),
haltOnFailure=False,
flunkOnFailure=True,
doStepIf=is_test_script_available, doStepIf=is_test_script_available,
hideStepIf=isnt_test_script_available, hideStepIf=isnt_test_script_available,
) )
@ -78,7 +84,7 @@ def add_child_sh_steps(build_factory, directory=".buildbot"):
"-type f -printf '%P\n'", "-type f -printf '%P\n'",
workdir="out", workdir="out",
hideStepIf=True, hideStepIf=True,
decodeRC={0:SUCCESS, 1:SUCCESS}, decodeRC={0: SUCCESS, 1: SUCCESS},
property="files_to_upload" property="files_to_upload"
) )
) )