diff options
author | Peter Andersson <[email protected]> | 2015-03-18 11:27:45 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2015-03-18 11:27:45 +0100 |
commit | 5051733044e526c2ca2122bb6012620cb47d1a29 (patch) | |
tree | 8166f47c7fdf6da30a6f02b36031afc157d03e1c /lib/common_test/test/ct_test_support.erl | |
parent | abcf91943c4d0d29c312786d9f531e531c6965a6 (diff) | |
parent | 36b13923d19931255c7cb12d615d098de77cd78f (diff) | |
download | otp-5051733044e526c2ca2122bb6012620cb47d1a29.tar.gz otp-5051733044e526c2ca2122bb6012620cb47d1a29.tar.bz2 otp-5051733044e526c2ca2122bb6012620cb47d1a29.zip |
Merge branch 'peppe/common_test/change_pre_post_io_test_timing' into maint
* peppe/common_test/change_pre_post_io_test_timing:
Modify test timing by enabling time multiplier and scaling
OTP-12574
Diffstat (limited to 'lib/common_test/test/ct_test_support.erl')
-rw-r--r-- | lib/common_test/test/ct_test_support.erl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/common_test/test/ct_test_support.erl b/lib/common_test/test/ct_test_support.erl index 746469584d..6abca08452 100644 --- a/lib/common_test/test/ct_test_support.erl +++ b/lib/common_test/test/ct_test_support.erl @@ -51,12 +51,12 @@ init_per_suite(Config) -> init_per_suite(Config, 50). init_per_suite(Config, Level) -> + ScaleFactor = test_server:timetrap_scale_factor(), case os:type() of {win32, _} -> %% Extend timeout to 1 hour for windows as starting node %% can take a long time there - test_server:timetrap( 60*60*1000 * - test_server:timetrap_scale_factor()); + test_server:timetrap( 60*60*1000 * ScaleFactor ); _ -> ok end, @@ -67,6 +67,16 @@ init_per_suite(Config, Level) -> _ -> ok end, + + {Mult,Scale} = test_server_ctrl:get_timetrap_parameters(), + test_server:format(Level, "Timetrap multiplier: ~w~n", [Mult]), + if Scale == true -> + test_server:format(Level, "Timetrap scale factor: ~w~n", + [ScaleFactor]); + true -> + ok + end, + start_slave(Config, Level). start_slave(Config, Level) -> |