Skip to content

autest command errors should log the failing command #9772

@jpeach

Description

@jpeach

When autest runs a command, there is typically a return code check. Per the failure I saw in #9770, the test error message looks like this:

     Setting up : Copying '/home/jenkins/workspace/Github_Builds/autest/src/tests/gold_tests/pluginTest/polite_hook_wait/.libs/polite_hook_wait.so' to '/tmp/sandbox/polite_hook_wait/ts/plugin' - Passed
     Test : Checking that ReturnCode == 0 - Failed
        Reason: Returned Value -9 != 0
     Time-Out : Process finishes within expected time - Passed
        Reason: Returned value: 10.503296613693237 < 600.0

This doesn't tell you what failed, which makes it hard to figure out. At minimum, autest should log the command that exited with the unwanted return code. It would be even better if it gave you the source code line in the test of where that command was added.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions