summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2011-08-05 02:55:47 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-08-07 16:21:43 +0200
commit4f41e742d3e583741d2e9cbacdd43f8ca5d90767 (patch)
tree1902ab943fba657998a69a029da8a5b87feb9c42 /test
parente3fe1c690359e9b720fca4f7b3f6299bbc0598ae (diff)
downloadrebar-4f41e742d3e583741d2e9cbacdd43f8ca5d90767.tar.gz
rebar_eunit_tests: avoid repetition
Diffstat (limited to 'test')
-rw-r--r--test/rebar_eunit_tests.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rebar_eunit_tests.erl b/test/rebar_eunit_tests.erl
index d1bfd82..2b9c44e 100644
--- a/test/rebar_eunit_tests.erl
+++ b/test/rebar_eunit_tests.erl
@@ -208,10 +208,11 @@ remove_tmp_dir(_) ->
%% ====================================================================
prepare_rebar_script() ->
- {ok, _} = file:copy(?REBAR_SCRIPT, ?TMP_DIR ++ "rebar"),
+ Rebar = ?TMP_DIR ++ "rebar",
+ {ok, _} = file:copy(?REBAR_SCRIPT, Rebar),
case os:type() of
{unix, _} ->
- [] = os:cmd("chmod u+x " ++ ?TMP_DIR ++ "rebar");
+ [] = os:cmd("chmod u+x " ++ Rebar);
{win32, _} ->
{ok, _} = file:copy(?REBAR_SCRIPT ++ ".bat",
?TMP_DIR ++ "rebar.bat")