Skip to content

Commit

Permalink
Fix txt not choosing the correct output type in standalone.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Aug 18, 2024
1 parent 4ac6e56 commit d79dccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nix/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_library(library, test_suite, version):
opts.extend(globals()[f"{test_suite.replace('-', '_')}_options"](library))
command = ["./result/bin/ECTesterStandalone", "test",
f"-oyml:results/yml/{library}_{test_suite}_{version}.yml",
f"-otxt:results/txt/{library}_{test_suite}_{version}.txt",
f"-otext:results/txt/{library}_{test_suite}_{version}.txt",
f"-oxml:results/xml/{library}_{test_suite}_{version}.xml",
"-q", *opts, test_suite, library]
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public class FileTestWriter extends BaseFileTestWriter {

private static final Pattern PREFIX = Pattern.compile("(text|xml|yaml|yml):.+");
private static final Pattern PREFIX = Pattern.compile("(text|txt|xml|yaml|yml):.+");

public FileTestWriter(String defaultFormat, boolean systemOut, String[] files) throws ParserConfigurationException, FileNotFoundException {
super(defaultFormat, systemOut, files);
Expand All @@ -37,6 +37,7 @@ protected TestWriter createWriter(String format, PrintStream out) throws ParserC
}
switch (format) {
case "text":
case "txt":
return new TextTestWriter(out);
case "xml":
return new XMLTestWriter(out);
Expand Down

0 comments on commit d79dccc

Please sign in to comment.