diff options
author | Siri Hansen <[email protected]> | 2017-03-14 11:18:46 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-03-20 11:09:24 +0100 |
commit | d7101fd2c2ce8bf609670043585c57010a3707c6 (patch) | |
tree | 695b717cfe82bd0729d13a19cb5b923925486f13 /lib/common_test/test/ct_keep_logs_SUITE_data | |
parent | 35e38c97f5f731e3b1689b0740efa305bac9d16e (diff) | |
download | otp-d7101fd2c2ce8bf609670043585c57010a3707c6.tar.gz otp-d7101fd2c2ce8bf609670043585c57010a3707c6.tar.bz2 otp-d7101fd2c2ce8bf609670043585c57010a3707c6.zip |
[ct] Add 'keep_logs' option
If setting the value for this option to an integer, N, common_test
will remove all ct_run.* directories in the current log directory,
except the N newest.
The default value for the 'keep_logs' option is 'all', which means that
no logs will be deleted.
'keep_logs' can be used in combination with refresh_logs, or in a normal
common_test test run.
Diffstat (limited to 'lib/common_test/test/ct_keep_logs_SUITE_data')
-rw-r--r-- | lib/common_test/test/ct_keep_logs_SUITE_data/keep_logs_SUITE.erl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_keep_logs_SUITE_data/keep_logs_SUITE.erl b/lib/common_test/test/ct_keep_logs_SUITE_data/keep_logs_SUITE.erl new file mode 100644 index 0000000000..2bccae564b --- /dev/null +++ b/lib/common_test/test/ct_keep_logs_SUITE_data/keep_logs_SUITE.erl @@ -0,0 +1,32 @@ +%% +%% %CopyrightBegin% +%% +%% Copyright Ericsson AB 2009-2016. All Rights Reserved. +%% +%% Licensed under the Apache License, Version 2.0 (the "License"); +%% you may not use this file except in compliance with the License. +%% You may obtain a copy of the License at +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%% +%% %CopyrightEnd% +%% +-module(keep_logs_SUITE). + +-compile(export_all). + +-include_lib("common_test/include/ct.hrl"). + +suite() -> + []. +all() -> + [test_case]. + +test_case(_Config) -> + ok. |