diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-08-05 02:55:47 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-08-07 16:21:43 +0200 |
commit | 4f41e742d3e583741d2e9cbacdd43f8ca5d90767 (patch) | |
tree | 1902ab943fba657998a69a029da8a5b87feb9c42 /test | |
parent | e3fe1c690359e9b720fca4f7b3f6299bbc0598ae (diff) |
rebar_eunit_tests: avoid repetition
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_eunit_tests.erl | 5 |
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") |