From 72b7794b3b234acd067eceb7b861b154ab1e1640 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Tue, 5 Jul 2016 12:26:49 +0200 Subject: ts: Don't flush port when ending test run Sometimes there are hanging ports left after a test run, we don't want the emulator to be left haning if that happens after a test run. --- lib/common_test/test_server/ts_run.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/common_test') diff --git a/lib/common_test/test_server/ts_run.erl b/lib/common_test/test_server/ts_run.erl index 66db1ff9a7..82ae44ec06 100644 --- a/lib/common_test/test_server/ts_run.erl +++ b/lib/common_test/test_server/ts_run.erl @@ -258,7 +258,7 @@ make_command(Vars, Spec, State) -> run_batch(Vars, _Spec, State) -> process_flag(trap_exit, true), - Command = State#state.command ++ " -noinput -s erlang halt", + Command = State#state.command ++ " -noinput -eval \"erlang:halt(0,[{flush,false}]).\"", ts_lib:progress(Vars, 1, "Command: ~ts~n", [Command]), io:format(user, "Command: ~ts~n",[Command]), Port = open_port({spawn, Command}, [stream, in, eof, exit_status]), -- cgit v1.2.3