diff options
author | Peter Andersson <[email protected]> | 2013-01-22 01:23:41 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2013-01-24 10:56:04 +0100 |
commit | f48550f96253588fcc643fcd5774a3c3ccb49b8b (patch) | |
tree | a1cd0d2d7713d9ed0914ec134deb320138975b9b /lib/common_test/src/ct_config.erl | |
parent | 6e8de699f548762e2e6894d347e9dc285db11841 (diff) | |
download | otp-f48550f96253588fcc643fcd5774a3c3ccb49b8b.tar.gz otp-f48550f96253588fcc643fcd5774a3c3ccb49b8b.tar.bz2 otp-f48550f96253588fcc643fcd5774a3c3ccb49b8b.zip |
Add tests and correct errors
OTP-9881
Diffstat (limited to 'lib/common_test/src/ct_config.erl')
-rw-r--r-- | lib/common_test/src/ct_config.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_config.erl b/lib/common_test/src/ct_config.erl index b1d709bc75..ac4ffbb236 100644 --- a/lib/common_test/src/ct_config.erl +++ b/lib/common_test/src/ct_config.erl @@ -266,7 +266,10 @@ read_config_files_int([{Callback, File}|Files], FunToSave) -> read_config_files_int([], _FunToSave) -> ok. -store_config(Config, Callback, File) -> +store_config(Config, Callback, File) when is_tuple(Config) -> + store_config([Config], Callback, File); + +store_config(Config, Callback, File) when is_list(Config) -> [ets:insert(?attr_table, #ct_conf{key=Key, value=Val, |