aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eunit/src/eunit_surefire.erl
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2017-03-04 17:41:46 +0100
committerGitHub <[email protected]>2017-03-04 17:41:46 +0100
commitfc2cf7905998fc388a9931d706d290ace11f7707 (patch)
tree047f8e2b378107b4eae446449e3b79d20918dce2 /lib/eunit/src/eunit_surefire.erl
parentb14e556b334069ca60b1be1a1ed45374daf8e1fc (diff)
downloadotp-fc2cf7905998fc388a9931d706d290ace11f7707.tar.gz
otp-fc2cf7905998fc388a9931d706d290ace11f7707.tar.bz2
otp-fc2cf7905998fc388a9931d706d290ace11f7707.zip
use normal file names for eunit reports
The surefire reports get called `TEXT-file_"foo.app".xml`, which creates all sorts of problems in the shell. I suggest that double quotes are removed like the single ones.
Diffstat (limited to 'lib/eunit/src/eunit_surefire.erl')
-rw-r--r--lib/eunit/src/eunit_surefire.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/eunit/src/eunit_surefire.erl b/lib/eunit/src/eunit_surefire.erl
index 6b306c51d3..2b9f82b075 100644
--- a/lib/eunit/src/eunit_surefire.erl
+++ b/lib/eunit/src/eunit_surefire.erl
@@ -424,6 +424,7 @@ escape_suitename(String) ->
escape_suitename([], Acc) -> lists:reverse(Acc);
escape_suitename([$ | Tail], Acc) -> escape_suitename(Tail, [$_ | Acc]);
escape_suitename([$' | Tail], Acc) -> escape_suitename(Tail, Acc);
+escape_suitename([$" | Tail], Acc) -> escape_suitename(Tail, Acc);
escape_suitename([$/ | Tail], Acc) -> escape_suitename(Tail, [$: | Acc]);
escape_suitename([$\\ | Tail], Acc) -> escape_suitename(Tail, [$: | Acc]);
escape_suitename([Char | Tail], Acc) when Char < $! -> escape_suitename(Tail, Acc);