diff options
author | Lukas Larsson <[email protected]> | 2010-12-06 10:57:40 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-01-24 10:45:14 +0100 |
commit | 96a540b6b219290a8248ef25ec23c1d331f8e953 (patch) | |
tree | 6ea6a875c573d0158eeaad98b468972376791b5d /lib/common_test | |
parent | a65da791a0ad23805ab756c25df0220b47b740a2 (diff) | |
download | otp-96a540b6b219290a8248ef25ec23c1d331f8e953.tar.gz otp-96a540b6b219290a8248ef25ec23c1d331f8e953.tar.bz2 otp-96a540b6b219290a8248ef25ec23c1d331f8e953.zip |
Add possibility to get all testdata
Diffstat (limited to 'lib/common_test')
-rw-r--r-- | lib/common_test/src/ct_util.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_util.erl b/lib/common_test/src/ct_util.erl index b5ab4cbb6e..1b60820565 100644 --- a/lib/common_test/src/ct_util.erl +++ b/lib/common_test/src/ct_util.erl @@ -268,6 +268,9 @@ loop(Mode,TestData,StartDir) -> TestData1 = lists:keydelete(Key,1,TestData), return(From,ok), loop(Mode,[New|TestData1],StartDir); + {{get_testdata, all}, From} -> + return(From, TestData), + loop(From, TestData, StartDir); {{get_testdata,Key},From} -> case lists:keysearch(Key,1,TestData) of {value,{Key,Val}} -> |