llvm.org GIT mirror llvm / 9a50c9b
Add the message attribute to skipped JUnit xml allows for a message attribute to be displayed on skips. Lets populate that with an analysis of why we skipped the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332156 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Matthews 1 year, 5 months ago
2 changed file(s) with 12 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
383383 fil.write(encoded_output)
384384 fil.write("]]>\n")
385385 elif self.result.code == UNSUPPORTED:
386 fil.write(">\n\t\n\n")
386 unsupported_features = self.getMissingRequiredFeatures()
387 if unsupported_features:
388 skip_message = "Skipping because of: " + ", ".join(unsupported_features)
389 else:
390 skip_message = "Skipping because of configuration."
391
392 fil.write(">\n\t\n\n".format(skip_message))
387393 else:
388394 fil.write("/>")
3232 # CHECK:
3333
3434 # CHECK:
35 # CHECK-NEXT:/>
35 # CHECK-NEXT:message="Skipping because of: a-missing-feature || a-missing-feature-2" />
3636
3737 # CHECK:
3838
3939 # CHECK:
40 # CHECK-NEXT:/>
40 # CHECK-NEXT:message="Skipping because of: a-missing-feature" />
4141
4242 # CHECK:
4343
4848
4949
5050 # CHECK:
51 # CHECK-NEXT:/>
51 # CHECK-NEXT:message="Skipping because of: x86_64" />
5252
5353 # CHECK:
5454
5555 # CHECK:
56 # CHECK-NEXT:/>
56 # CHECK-NEXT:message="Skipping because of configuration." />
5757
5858 # CHECK:
5959 # CHECK-NEXT:
6161 # CHECK-NEXT:
6262
6363 # CHECK:
64 # CHECK-NEXT:/>
64 # CHECK-NEXT:message="Skipping because of configuration." />
6565
6666 # CHECK:
6767