Skip to content

Commit

Permalink
try removing bat from the cli command
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa-wael committed Jul 18, 2024
1 parent f4a737f commit cfdf7c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Verify MetaCall installation
shell: powershell
run: |
metacall.bat
metacall
- name: Install Dependencies
shell: bash
Expand Down
6 changes: 2 additions & 4 deletions testing/runner/cli_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ def get_runtime_tag(self, file_name):
def run_test_command(self, file_path, test_case_command):
file_name = file_path.split('/')[-1]
try:
if platform.system() == 'Windows':
process = subprocess.Popen(['metacall.bat'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else:
process = subprocess.Popen(['metacall'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

process = subprocess.Popen(['metacall'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

commands = ['load ' + ' ' + self.get_runtime_tag(file_name) + ' ' + file_path, test_case_command, 'exit']
commands = '\n'.join(commands) + '\n' # join the commands with a newline character
Expand Down

0 comments on commit cfdf7c7

Please sign in to comment.