Merge pull request #6542 from blueyed/fix-test_record_property

tests: fix/harden test_record_property
This commit is contained in:
Daniel Hahler 2020-01-23 11:14:37 +01:00 committed by GitHub
commit eb7a57f965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1061,13 +1061,14 @@ def test_record_property(testdir, run_and_parse):
record_property("foo", "<1");
"""
)
result, dom = run_and_parse("-rwv")
result, dom = run_and_parse("-rw")
node = dom.find_first_by_tag("testsuite")
tnode = node.find_first_by_tag("testcase")
psnode = tnode.find_first_by_tag("properties")
pnodes = psnode.find_by_tag("property")
pnodes[0].assert_attr(name="bar", value="1")
pnodes[1].assert_attr(name="foo", value="<1")
result.stdout.fnmatch_lines(["*= 1 passed in *"])
def test_record_property_same_name(testdir, run_and_parse):