diff options
author | Lukas Larsson <[email protected]> | 2011-02-15 19:58:13 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-02-16 09:49:39 +0100 |
commit | 8b86cd551352ac06bccbeab4c76849d3978876ec (patch) | |
tree | 6f4065f6f1086d92982a4cc003329a0103e1dcb1 /lib/test_server/src/test_server_ctrl.erl | |
parent | a5c92f814fd5c59ec219b83f9af8826f5f046962 (diff) | |
download | otp-8b86cd551352ac06bccbeab4c76849d3978876ec.tar.gz otp-8b86cd551352ac06bccbeab4c76849d3978876ec.tar.bz2 otp-8b86cd551352ac06bccbeab4c76849d3978876ec.zip |
Update TEST_SERVER_FRAMEWORK os variable to be regarded as undet if set to undefined
Diffstat (limited to 'lib/test_server/src/test_server_ctrl.erl')
-rw-r--r-- | lib/test_server/src/test_server_ctrl.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/test_server/src/test_server_ctrl.erl b/lib/test_server/src/test_server_ctrl.erl index 00278c0165..0c363085f4 100644 --- a/lib/test_server/src/test_server_ctrl.erl +++ b/lib/test_server/src/test_server_ctrl.erl @@ -643,7 +643,7 @@ contact_main_target(local) -> %% When used by a general framework, global registration of %% test_server should not be required. case os:getenv("TEST_SERVER_FRAMEWORK") of - false -> + FW when FW =:= false; FW =:= "undefined" -> %% Local target! The global test_server process implemented by %% test_server.erl will not be started, so we simulate it by %% globally registering this process instead. @@ -1710,7 +1710,7 @@ do_test_cases(TopCases, SkipCases, [erlang:system_info(version), code:root_dir()]), case os:getenv("TEST_SERVER_FRAMEWORK") of - false -> + FW when FW =:= false; FW =:= "undefined" -> print(html, "<p>Target:<br>\n"), print_who(TI#target_info.host, TI#target_info.username), print(html, "<br>Used Erlang ~s in <tt>~s</tt>.\n", @@ -4063,7 +4063,7 @@ get_font_style1(default) -> format_exception(Reason={_Error,Stack}) when is_list(Stack) -> case os:getenv("TEST_SERVER_FRAMEWORK") of - false -> + FW when FW =:= false; FW =:= "undefined" -> case application:get_env(test_server, format_exception) of {ok,false} -> {"~p",Reason}; @@ -4636,7 +4636,7 @@ collect_case([Case | Cases], St, Acc) -> collect_case_invoke(Mod, Case, MFA, St) -> case os:getenv("TEST_SERVER_FRAMEWORK") of - false -> + FW when FW =:= false; FW =:= "undefined" -> case catch apply(Mod, Case, [suite]) of {'EXIT',_} -> {ok,[MFA],St}; |