Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-1328

Errors from mender-artifact do not get detected by bitbake

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0, 1.1.1
    • Labels:

      Description

      While doing the state script backport to morty, I had an issue where the version of mender-artifact I was using would error out.  Notably this was when I was attempting to add the example-state-scripts recipe.  In this scenario, the call to mender-artifact would try to use the '-s' option.  The invocation would fail with an error message but evidently no error code.  The bitbake build would complete successfully but the actual artifact files would not be generated.  I tried a few invocations of mender-artifact by hand and it seems that specifying an invalid command line parameter does not cause an error return from the executable.  I'm not sure if that's true for all invocations of mender-artifact but certainly with the use of an invalid command line parameter.

      I assume having the executable return an error code would allow bitbake to detect the failure and bubble that back up rather than having it buried in a log file.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                oleorhagen Ole Petter Orhagen
                Reporter:
                drewmoseley Drew Moseley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support

                    Summary Panel