aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_testspec_1_SUITE.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2012-05-11 00:51:18 +0200
committerPeter Andersson <[email protected]>2012-05-15 11:27:48 +0200
commita674521f4030ef6c92da87fbf5bd9cf2a92ddf95 (patch)
tree065e4a883155067e0514ca35699c933dc1a20397 /lib/common_test/test/ct_testspec_1_SUITE.erl
parentbb1734e95a5f6a7315819c24bc1fdd799534c787 (diff)
downloadotp-a674521f4030ef6c92da87fbf5bd9cf2a92ddf95.tar.gz
otp-a674521f4030ef6c92da87fbf5bd9cf2a92ddf95.tar.bz2
otp-a674521f4030ef6c92da87fbf5bd9cf2a92ddf95.zip
Implement support for returning valid exit status from ct_run
Also change the return value of the ct:run_test/1 function. OTP-9865 OTP-10087
Diffstat (limited to 'lib/common_test/test/ct_testspec_1_SUITE.erl')
-rw-r--r--lib/common_test/test/ct_testspec_1_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/common_test/test/ct_testspec_1_SUITE.erl b/lib/common_test/test/ct_testspec_1_SUITE.erl
index b6dcf63fdf..693e8c6567 100644
--- a/lib/common_test/test/ct_testspec_1_SUITE.erl
+++ b/lib/common_test/test/ct_testspec_1_SUITE.erl
@@ -621,7 +621,9 @@ setup_and_execute(TCName, TestSpec, Config) ->
ok = ct_test_support:run(Opts, Config),
TestSpec1 = [{logdir,proplists:get_value(logdir,Opts)},
{label,proplists:get_value(label,TestTerms)} | TestSpec],
- ok = ct_test_support:run(ct, run_testspec, [TestSpec1], Config),
+ {_Ok,_Failed,{_USkipped,_ASkipped}} =
+ ct_test_support:run(ct, run_testspec, [TestSpec1], Config),
+
Events = ct_test_support:get_events(ERPid, Config),
ct_test_support:log_events(TCName,