depends.py: fix typo and slightly reorganized code

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
diff --git a/tests/scripts/analyze_outcomes.py b/tests/scripts/analyze_outcomes.py
index 4938b3b..2cdcbf1 100755
--- a/tests/scripts/analyze_outcomes.py
+++ b/tests/scripts/analyze_outcomes.py
@@ -74,16 +74,16 @@
     result = True
 
     for key in available:
-        # Skip ignored test suites
-        full_test_suite = key.split(';')[0] # retrieve full test suit name
-        test_string = key.split(';')[1] # retrieve the text string of this test
-        test_suite = full_test_suite.split('.')[0] # retrieve main part of test suit name
-        if test_suite in ignored_suites:
-            continue
         # Continue if test was not executed by any component
         hits = outcomes[key].hits() if key in outcomes else 0
         if hits == 0:
             continue
+        # Skip ignored test suites
+        full_test_suite = key.split(';')[0] # retrieve full test suite name
+        test_string = key.split(';')[1] # retrieve the text string of this test
+        test_suite = full_test_suite.split('.')[0] # retrieve main part of test suite name
+        if test_suite in ignored_suites:
+            continue
         if ((full_test_suite in ignored_test) and
                 (test_string in ignored_test[full_test_suite])):
             continue