summaryrefslogtreecommitdiff
path: root/modules/simpletest/simpletest.pages.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/simpletest.pages.inc')
-rw-r--r--modules/simpletest/simpletest.pages.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/simpletest/simpletest.pages.inc b/modules/simpletest/simpletest.pages.inc
index 66e423ba3..dcf6fb553 100644
--- a/modules/simpletest/simpletest.pages.inc
+++ b/modules/simpletest/simpletest.pages.inc
@@ -190,7 +190,8 @@ function simpletest_test_form_submit($form, &$form_state) {
}
}
if (count($tests_list) > 0 ) {
- simpletest_run_tests($tests_list, 'drupal');
+ $test_id = simpletest_run_tests($tests_list, 'drupal');
+ $form_state['redirect'] = 'admin/config/development/testing/results/' . $test_id;
}
else {
drupal_set_message(t('No test(s) selected.'), 'error');