kunit: tool: fix invalid attribute access on build failure

On a recent failed run we got the following error:

Traceback (most recent call last):
  File "./tools/testing/kunit/kunit.py", line 123, in <module>
    main(sys.argv[1:], kunit_kernel.LinuxSourceTree())
  File "./tools/testing/kunit/kunit.py", line 116, in main
    result = run_tests(linux, request)
  File "./tools/testing/kunit/kunit.py", line 39, in run_tests
    build_result = linux.build_um_kernel()
  File "/home/prow/go/src/github.com/kunit-review.googlesource.com/linux/tools/testing/kunit/kunit_kernel.py", line 146, in build_um_kernel
    return BuildResult(BuildStatus.FAILURE, e.message)
AttributeError: 'BuildError' object has no attribute 'message'

This fixes the invalid attribute access.

Google-Bug-Id: 131438303
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Change-Id: I09b0d493250d686989cbf726dc3e9a4805b7ef94
1 file changed