sanitycheck: fix parsting tests from source files

Fixed bug in parsing testnames from source files. We added 1cpu testing
but did not update the regex and we have been passing wrong path to the
glob as well, meaning tests were not parsed at all.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 4b8cc18..e1d47f0 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -1520,7 +1520,7 @@
             # ztest_test_suite(mutex_complex, ztest_user_unit_test(TESTNAME));
             br"(?:ztest_test_suite\([a-zA-Z0-9_]+,\s*)?"
             # Catch ztest[_user]_unit_test-[_setup_teardown](TESTNAME)
-            br"ztest_(?:user_)?unit_test(?:_setup_teardown)?"
+            br"ztest_(?:1cpu_)?(?:user_)?unit_test(?:_setup_teardown)?"
             # Consume the argument that becomes the extra testcse
             br"\(\s*"
             br"(?P<stc_name>[a-zA-Z0-9_]+)"
@@ -1583,7 +1583,7 @@
         return subcases
 
     def parse_subcases(self, test_path):
-        results = self.scan_path(os.path.dirname(test_path))
+        results = self.scan_path(test_path)
         for sub in results:
             name = "{}.{}".format(self.id, sub)
             self.cases.append(name)