Skip to content

tests: replace open-coded Popen+wait patterns with self.exec_cmd()#23

Draft
Copilot wants to merge 5 commits intomasterfrom
copilot/improve-tests-exec-cmd-usage
Draft

tests: replace open-coded Popen+wait patterns with self.exec_cmd()#23
Copilot wants to merge 5 commits intomasterfrom
copilot/improve-tests-exec-cmd-usage

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 9, 2026

  • nvme_test.py: add import logging, module-level logger, configure from log_level, logger.debug(cmd) before every subprocess call, replace self.debug/print() with logger.debug()
  • nvme_copy_test.py, nvme_format_test.py, nvme_get_features_test.py: add logger, logger.debug(cmd) before each subprocess call
  • config.json: document log_level option
  • Log stdout output wherever proc.stdout.read() / line iteration is used
  • Only call logging.basicConfig() when no handlers are already installed
  • Guard lines[0] in get_error_log against empty output

Copilot AI requested a review from igaw April 9, 2026 07:49
Copilot finished work on behalf of igaw April 9, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants