From ab98bc15a8aac7a485e4823a098380b058821e4c Mon Sep 17 00:00:00 2001 From: "Viacheslav V. Kovalev" Date: Thu, 4 Jun 2015 23:08:27 +0300 Subject: Fix rebar_utils:sh on windows --- test/rebar_utils_SUITE.erl | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'test/rebar_utils_SUITE.erl') diff --git a/test/rebar_utils_SUITE.erl b/test/rebar_utils_SUITE.erl index e9b32e2..76af5dd 100644 --- a/test/rebar_utils_SUITE.erl +++ b/test/rebar_utils_SUITE.erl @@ -21,7 +21,8 @@ task_with_flag_with_trailing_comma/1, task_with_flag_with_commas/1, task_with_multiple_flags/1, - special_task_do/1]). + special_task_do/1, + sh_don_not_miss_messages/1]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). @@ -29,7 +30,8 @@ all() -> - [{group, args_to_tasks}]. + [{group, args_to_tasks}, + sh_don_not_miss_messages]. groups() -> [{args_to_tasks, [], [empty_arglist, @@ -118,3 +120,14 @@ special_task_do(_Config) -> "do", "bar,", "baz"]). +sh_don_not_miss_messages(_Config) -> + Source = "~nmain(_) ->~n io:format(\"donotmissme\").~n", + file:write_file("do_not_miss_messages", io_lib:format(Source,[])), + {ok, "donotmissme"} = rebar_utils:sh("escript do_not_miss_messages", []), + AnyMessageRemained = + receive + What -> What + after 100 -> + false + end, + AnyMessageRemained = false. \ No newline at end of file -- cgit v1.1 From 44272e23b641a016b74edf0cb9849b0656e8f726 Mon Sep 17 00:00:00 2001 From: "Viacheslav V. Kovalev" Date: Fri, 26 Jun 2015 22:35:39 +0300 Subject: Some fixes after review --- test/rebar_utils_SUITE.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/rebar_utils_SUITE.erl') diff --git a/test/rebar_utils_SUITE.erl b/test/rebar_utils_SUITE.erl index 76af5dd..f04ab63 100644 --- a/test/rebar_utils_SUITE.erl +++ b/test/rebar_utils_SUITE.erl @@ -22,7 +22,7 @@ task_with_flag_with_commas/1, task_with_multiple_flags/1, special_task_do/1, - sh_don_not_miss_messages/1]). + sh_does_not_miss_messages/1]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). @@ -31,7 +31,7 @@ all() -> [{group, args_to_tasks}, - sh_don_not_miss_messages]. + sh_does_not_miss_messages]. groups() -> [{args_to_tasks, [], [empty_arglist, @@ -120,7 +120,7 @@ special_task_do(_Config) -> "do", "bar,", "baz"]). -sh_don_not_miss_messages(_Config) -> +sh_does_not_miss_messages(_Config) -> Source = "~nmain(_) ->~n io:format(\"donotmissme\").~n", file:write_file("do_not_miss_messages", io_lib:format(Source,[])), {ok, "donotmissme"} = rebar_utils:sh("escript do_not_miss_messages", []), @@ -130,4 +130,4 @@ sh_don_not_miss_messages(_Config) -> after 100 -> false end, - AnyMessageRemained = false. \ No newline at end of file + AnyMessageRemained = false. -- cgit v1.1