diff options
author | Peter Andersson <[email protected]> | 2017-02-21 17:15:39 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2017-02-21 17:15:39 +0100 |
commit | a46cce8e797251e4e5316e81de75877703a43a99 (patch) | |
tree | 133aac833d04e5516b066ed76dc62e4e8fb6554e /lib/common_test/src/ct_testspec.erl | |
parent | 4f56fb3e9120e92ff7b0700402707ad032114311 (diff) | |
download | otp-a46cce8e797251e4e5316e81de75877703a43a99.tar.gz otp-a46cce8e797251e4e5316e81de75877703a43a99.tar.bz2 otp-a46cce8e797251e4e5316e81de75877703a43a99.zip |
Fix multiply/scale_timetraps in testspecs not working
OTP-14210
Diffstat (limited to 'lib/common_test/src/ct_testspec.erl')
-rw-r--r-- | lib/common_test/src/ct_testspec.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_testspec.erl b/lib/common_test/src/ct_testspec.erl index 991abb0666..b66440e9ba 100644 --- a/lib/common_test/src/ct_testspec.erl +++ b/lib/common_test/src/ct_testspec.erl @@ -1132,6 +1132,11 @@ handle_data(verbosity,Node,VLvls,_Spec) when is_list(VLvls) -> VLvls1 = lists:map(fun(VLvl = {_Cat,_Lvl}) -> VLvl; (Lvl) -> {'$unspecified',Lvl} end, VLvls), [{Node,VLvls1}]; +handle_data(multiply_timetraps,Node,Mult,_Spec) when is_integer(Mult) -> + [{Node,Mult}]; +handle_data(scale_timetraps,Node,Scale,_Spec) when Scale == true; + Scale == false -> + [{Node,Scale}]; handle_data(silent_connections,Node,all,_Spec) -> [{Node,[all]}]; handle_data(silent_connections,Node,Conn,_Spec) when is_atom(Conn) -> @@ -1150,6 +1155,8 @@ should_be_added(Tag,Node,_Data,Spec) -> Tag == label; Tag == auto_compile; Tag == abort_if_missing_suites; Tag == stylesheet; Tag == verbosity; + Tag == multiply_timetraps; + Tag == scale_timetraps; Tag == silent_connections -> lists:keymember(ref2node(Node,Spec#testspec.nodes),1, read_field(Spec,Tag)) == false; |