Skip to content

Commit

Permalink
Capturing cmd output
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrithicusGreenson committed Apr 18, 2024
1 parent cd1b1d0 commit 44eb67d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion genisys/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def meteor_initialization(server_config: ServerOptions):
old_cwd = os.getcwd()
meteor_dev_dir = Path(package_location[:package_location.rfind('genisys/')], 'meteor-dev')
os.chdir(meteor_dev_dir)
subprocess.run(['meteor', 'test', '--driver-package', 'meteortesting:mocha', '--once', '--full-app'], check=True, stderr=subprocess.STDOUT)
result = subprocess.run(['meteor', 'test', '--driver-package', 'meteortesting:mocha', '--once', '--full-app'], check=True, stderr=subprocess.STDOUT, capture_output=True, text=True)
print(result)
os.chdir(old_cwd)
return

Expand Down

0 comments on commit 44eb67d

Please sign in to comment.