ferruzzi commented on code in PR #43529:
URL: https://github.com/apache/airflow/pull/43529#discussion_r1823698476


##########
dev/breeze/src/airflow_breeze/commands/testing_commands.py:
##########
@@ -877,8 +877,16 @@ def _run_test_command(
         )
     else:
         if shell_params.test_type == "Default":
-            if any([arg.startswith("tests") for arg in extra_pytest_args]):
+            if any(
+                [
+                    arg.startswith("tests/")
+                    or arg.startswith("providers/tests/")
+                    or arg.startswith("task_sdk/tests/")

Review Comment:
   Just curious, maybe a regex match on `^[a-zA-Z_]*/?tests/$`
   
   `Any combination of letters and underscores (including zero), followed by an 
optional slash, and ending with the exact string 'tests/'` should match all 
`tests` directories at most one subdirectory deep and maybe make this a little 
less brittle?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to