Skip to content

Commit

Permalink
addons/test/utils.py: wait for subprocesses to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Sep 26, 2023
1 parent 3d3d597 commit 5f00bcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/test/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ def dump_create(fpath, *argv):
p.communicate()
if p.returncode != 0:
raise OSError("cppcheck returns error code: %d" % p.returncode)
subprocess.Popen(["sync"])
p = subprocess.Popen(["sync"])
p.communicate()


def dump_remove(fpath):
subprocess.Popen(["rm", "-f", fpath + ".dump"])
p = subprocess.Popen(["rm", "-f", fpath + ".dump"])
p.communicate()


def convert_json_output(raw_json_strings):
Expand Down

0 comments on commit 5f00bcc

Please sign in to comment.