aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2015-09-30 11:25:17 +0200
committerSiri Hansen <[email protected]>2015-09-30 11:25:17 +0200
commit6dc374d356c674e1dbf171ff0d5095d2e9206c9e (patch)
treea1efee8bc0da5131ec372d87f9659c2bcd1ce3d1 /lib/test_server
parent0540e422498a2b3f362025c7a4afa4a8269554d2 (diff)
parentba2528b482e48f2e45509f6999f8f919b152d48f (diff)
downloadotp-6dc374d356c674e1dbf171ff0d5095d2e9206c9e.tar.gz
otp-6dc374d356c674e1dbf171ff0d5095d2e9206c9e.tar.bz2
otp-6dc374d356c674e1dbf171ff0d5095d2e9206c9e.zip
Merge branch 'maint'
Diffstat (limited to 'lib/test_server')
-rw-r--r--lib/test_server/src/ts_lib.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/test_server/src/ts_lib.erl b/lib/test_server/src/ts_lib.erl
index 61bd55a654..7c3f450194 100644
--- a/lib/test_server/src/ts_lib.erl
+++ b/lib/test_server/src/ts_lib.erl
@@ -250,12 +250,10 @@ do_test(Rest, Vars, Test) ->
{Result,Comment,Rest2}.
%% extract an argument
-get_arg([$ |Rest], Vars, Stop, Acc) ->
- get_arg(Rest, Vars, Stop, Acc);
get_arg([$(|Rest], Vars, Stop, _) ->
get_arg(Rest, Vars, Stop, []);
get_arg([Stop|Rest], Vars, Stop, Acc) ->
- Arg = lists:reverse(Acc),
+ Arg = string:strip(lists:reverse(Acc)),
Subst = subst(Arg, Vars),
{Subst,Rest};
get_arg([C|Rest], Vars, Stop, Acc) ->