Skip to content

Commit

Permalink
ci: use shutil.which to work around WSL bash in GHA (actions/runner-i…
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Jul 21, 2020
1 parent 5b7f18f commit c8efd3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from os import environ
from pathlib import Path
from subprocess import check_call, STDOUT
from shutil import which
import unittest
import pytest

Expand All @@ -17,7 +18,7 @@ class TestExamples(unittest.TestCase):
"""

def setUp(self):
self.shell = ['bash'] if platform == 'win32' else []
self.shell = [which('bash')] if platform == 'win32' else []
self.root = Path(__file__).parent
self.vhpidirect = self.root / 'vhpidirect'
self.vpi = self.root / 'vpi'
Expand Down

0 comments on commit c8efd3d

Please sign in to comment.