@@ -46,8 +46,6 @@ create or replace package body ut_suite_manager is
4646 if l_annotation_data.package_annotations.exists('suitepackage') then
4747 l_suite_package := ut_annotations.get_annotation_param(l_annotation_data.package_annotations('suitepackage'), 1) || '.' ||
4848 lower(l_object_name);
49- --else
50- -- l_suite_package := lower(l_object_name);
5149 end if;
5250
5351 if l_annotation_data.package_annotations.exists('rollback') then
@@ -187,7 +185,6 @@ create or replace package body ut_suite_manager is
187185 l_ind := a_root_suite.item_index(l_temp_root);
188186
189187 if l_ind is null then
190- --l_cur_item := ut_test_suite(null, l_temp_root);
191188 l_cur_item := ut_test_suite(a_suite_name => null
192189 ,a_object_name => l_temp_root
193190 ,a_object_path => l_path);
@@ -357,9 +354,7 @@ create or replace package body ut_suite_manager is
357354 else
358355 for i in 1 .. a_paths.count loop
359356 l_path := a_paths(i);
360- if regexp_like(l_path, '^\w+(\.\w+){0,2}$') or regexp_like(l_path, '^\w+:\w+(\.\w+)*$') then
361- null;
362- else
357+ if l_path is null or not (regexp_like(l_path, '^\w+(\.\w+){0,2}$') or regexp_like(l_path, '^\w+:\w+(\.\w+)*$')) then
363358 raise_application_error(ut_utils.gc_invalid_path_format, 'Invalid path format: ' || nvl(l_path, 'NULL'));
364359 end if;
365360 end loop;
@@ -460,22 +455,19 @@ create or replace package body ut_suite_manager is
460455 l_path := rtrim(l_schema || ':' || l_temp_suite.object_path || '.' || l_procedure_name, '.');
461456 end;
462457 end if;
458+
459+ -- fully quilified path branch in the form
460+ -- by this time it's the only format left
461+ -- schema:suite.suite.suite
462+ l_suite_path := regexp_substr(l_path, ':(.+)', subexpression => 1);
463+ l_root_suite_name := regexp_substr(l_suite_path, '^\w+');
463464
464- if regexp_like(l_path, '^\w+:.+$') then
465- -- fully quilified path branch in the form
466- -- schema:suite.suite.suite
467-
468- l_suite_path := regexp_substr(l_path, ':(.+)', subexpression => 1);
469- l_root_suite_name := regexp_substr(l_suite_path, '^\w+');
470-
471- l_suite := l_schema_suites(l_root_suite_name);
465+ l_suite := l_schema_suites(l_root_suite_name);
472466
473- --set_skipped_flag(l_suite, l_suite_path);
474- set_skipped_flag(l_suite, regexp_substr(l_suite_path, '\.(.+)', subexpression => 1));
467+ set_skipped_flag(l_suite, regexp_substr(l_suite_path, '\.(.+)', subexpression => 1));
475468
476- l_objects_to_run.extend;
477- l_objects_to_run(l_objects_to_run.count) := l_suite;
478- end if;
469+ l_objects_to_run.extend;
470+ l_objects_to_run(l_objects_to_run.count) := l_suite;
479471
480472 end if;
481473
0 commit comments