run_tests: log pytest invocation
This makes it clear what args are being passed down to pytest.
BUG=None
TEST=`./run_tests --debug` shows pytest invocation
Change-Id: Iaae9d069503bdaedcfafe22c0cd82bc1a11fea53
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3804008
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Sloan Johnson <sloanjohnson@google.com>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Sloan Johnson <sloanjohnson@google.com>
diff --git a/scripts/run_tests.py b/scripts/run_tests.py
index 0dfdb01..1ffa6ea 100644
--- a/scripts/run_tests.py
+++ b/scripts/run_tests.py
@@ -79,6 +79,7 @@
f'The root directory has broken ownership: {st.st_uid}:{st.st_gid}'
' (should be 0:0)\nFix with: sudo chown 0:0 /')
+ logging.debug('Running: pytest %s', cros_build_lib.CmdToStr(pytest_args))
sys.exit(pytest.main(pytest_args))