From a0c5b820fff54a8c47b9dc08e896d320bc7bbc0d Mon Sep 17 00:00:00 2001 From: Derek Abdine Date: Mon, 6 Dec 2021 16:02:48 -0800 Subject: [PATCH] Attempt to remove xml nodes from test files to pass for jruby --- features/data/tests_with_failures.xml | 1 - features/data/tests_with_warnings.xml | 1 - features/verify.feature | 12 ++++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/features/data/tests_with_failures.xml b/features/data/tests_with_failures.xml index cf51bdb4..5d60b328 100755 --- a/features/data/tests_with_failures.xml +++ b/features/data/tests_with_failures.xml @@ -1,4 +1,3 @@ - foo test diff --git a/features/data/tests_with_warnings.xml b/features/data/tests_with_warnings.xml index 754f6786..d1de5882 100644 --- a/features/data/tests_with_warnings.xml +++ b/features/data/tests_with_warnings.xml @@ -1,4 +1,3 @@ - ---------- Welcome to Pure-FTPd ---------- diff --git a/features/verify.feature b/features/verify.feature index 66c5b79f..528567d5 100644 --- a/features/verify.feature +++ b/features/verify.feature @@ -20,8 +20,8 @@ Feature: Verify When I run `recog_verify tests_with_warnings.xml` Then it should fail with: """ - tests_with_warnings.xml:10: WARN: 'Pure-FTPd' has no test cases - tests_with_warnings.xml:10: WARN: 'Pure-FTPd' is missing an example that checks for parameter 'pureftpd.config' which is derived from a capture group + tests_with_warnings.xml:9: WARN: 'Pure-FTPd' has no test cases + tests_with_warnings.xml:9: WARN: 'Pure-FTPd' is missing an example that checks for parameter 'pureftpd.config' which is derived from a capture group tests_with_warnings.xml: SUMMARY: Test completed with 1 successful, 2 warnings, and 0 failures """ And the exit status should be 2 @@ -39,10 +39,10 @@ Feature: Verify When I run `recog_verify tests_with_failures.xml` Then it should fail with: """ - tests_with_failures.xml:3: FAIL: 'foo test' failed to match "bar" with (?-mix:^foo$)' - tests_with_failures.xml:8: FAIL: '' failed to match "This almost matches" with (?-mix:^This matches$)' - tests_with_failures.xml:13: FAIL: 'bar test's os.name is a non-zero pos but specifies a value of 'Bar' - tests_with_failures.xml:13: FAIL: 'bar test' failed to find expected capture group os.version '5.0'. Result was 1.0 + tests_with_failures.xml:2: FAIL: 'foo test' failed to match "bar" with (?-mix:^foo$)' + tests_with_failures.xml:7: FAIL: '' failed to match "This almost matches" with (?-mix:^This matches$)' + tests_with_failures.xml:12: FAIL: 'bar test's os.name is a non-zero pos but specifies a value of 'Bar' + tests_with_failures.xml:12: FAIL: 'bar test' failed to find expected capture group os.version '5.0'. Result was 1.0 tests_with_failures.xml: SUMMARY: Test completed with 0 successful, 0 warnings, and 4 failures """ And the exit status should be 4