diff options
author | Siri Hansen <[email protected]> | 2016-03-01 16:46:35 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2016-03-01 16:51:30 +0100 |
commit | 51349126632b3ce589f217abe5dcfb7b1e47faa1 (patch) | |
tree | 6a1a285d7b45f44525367483918cc8dcf570440c /lib/common_test | |
parent | 6f8997c001a17b9d9322e26757690489d6111dac (diff) | |
download | otp-51349126632b3ce589f217abe5dcfb7b1e47faa1.tar.gz otp-51349126632b3ce589f217abe5dcfb7b1e47faa1.tar.bz2 otp-51349126632b3ce589f217abe5dcfb7b1e47faa1.zip |
Set dir for slave node's erl_crash.dump
This was earlier filename:dirname(code:which(test_server)). On
Microsoft Windows, this pointed to a directory under c:/Program Files,
and in later versions this directory is no longer writable. The
framework (common_test) log dir is now used instead.
Diffstat (limited to 'lib/common_test')
-rw-r--r-- | lib/common_test/src/ct_framework.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl index f792269c41..8fb7a03bb0 100644 --- a/lib/common_test/src/ct_framework.erl +++ b/lib/common_test/src/ct_framework.erl @@ -28,7 +28,7 @@ -export([init_tc/3, end_tc/3, end_tc/4, get_suite/2, get_all_cases/1]). -export([report/2, warn/1, error_notification/4]). --export([get_logopts/0, format_comment/1, get_html_wrapper/4]). +-export([get_log_dir/0, get_logopts/0, format_comment/1, get_html_wrapper/4]). -export([error_in_suite/1, init_per_suite/1, end_per_suite/1, init_per_group/2, end_per_group/2]). @@ -1480,3 +1480,8 @@ get_html_wrapper(TestName, PrintLabel, Cwd, TableCols) -> get_html_wrapper(TestName, PrintLabel, Cwd, TableCols, Encoding) -> ct_logs:get_ts_html_wrapper(TestName, PrintLabel, Cwd, TableCols, Encoding). + +%%%----------------------------------------------------------------- +%%% @spec get_log_dir() -> {ok,LogDir} +get_log_dir() -> + ct_logs:get_log_dir(true). |