Skip to content

Commit

Permalink
Merge pull request #1254 from Bastian-Krause/bst/sigrok-improvements
Browse files Browse the repository at this point in the history
Minor Sigrok Improvements
  • Loading branch information
Emantor committed Dec 15, 2023
2 parents e8fdd87 + cf626b5 commit 3b1df77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions labgrid/driver/sigrokdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def stop(self):

self._process.send_signal(signal.SIGINT)
stdout, stderr = self._process.communicate()
self._process.wait()
self.logger.debug("stdout:\n %s\n ----- \n stderr:\n %s", stdout, stderr)
self.logger.debug("stdout: %s", stdout)
self.logger.debug("stderr: %s", stderr)

# Convert from .sr to .csv
cmd = [
Expand All @@ -173,9 +173,9 @@ def stop(self):
os.path.join(self._tmpdir, csv_filename)
]
self._call(*cmd)
self._process.wait()
stdout, stderr = self._process.communicate()
self.logger.debug("stdout:\n %s\n ----- \n stderr:\n %s", stdout, stderr)
self.logger.debug("stdout: %s", stdout)
self.logger.debug("stderr: %s", stderr)
if isinstance(self.sigrok, NetworkSigrokUSBDevice):
subprocess.call([
'scp', f'{self.sigrok.host}:{os.path.join(self._tmpdir, self._basename)}',
Expand Down

0 comments on commit 3b1df77

Please sign in to comment.