raiden00pl commented on code in PR #12:
URL: https://github.com/apache/nuttx-ntfc/pull/12#discussion_r3734210106


##########
src/ntfc/cli/main.py:
##########
@@ -340,8 +340,120 @@ def multi_run(ctx: Environment) -> int:
     return runner.run()
 
 
+def _fuzz_check_tree(cwd: Any, where: str) -> bool:  # pragma: no cover
+    """Verify a tree dir contains nuttx/ and apps/; print guidance if not."""
+    from pathlib import Path
+
+    cwd = Path(cwd)
+    if (cwd / "nuttx").is_dir() and (cwd / "apps").is_dir():
+        return True
+    print(
+        f"[fuzz] ERROR: {where} '{cwd}' must contain both nuttx/ and apps/ "
+        f"checkouts (nuttx/ present: {(cwd / 'nuttx').is_dir()}, apps/ "
+        f"present: {(cwd / 'apps').is_dir()}). Nothing was built."
+    )
+    return False
+
+
+def fuzz_run(ctx: Environment) -> int:  # pragma: no cover  # noqa: C901

Review Comment:
   fix C901



-- 
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