Skip to content

Commit

Permalink
Testing: use sail --dir for default SAIL_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
bacam committed Feb 6, 2025
1 parent 54d6aab commit 1e24db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sailtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_sail_dir():
return os.environ['SAIL_DIR']
except KeyError:
try:
p = subprocess.run(["opam", "var", "sail:share"], capture_output=True, text=True)
p = subprocess.run([get_sail(), "--dir"], capture_output=True, text=True)
except Exception as e:
print('{}Unable to get Sail library directory from opam{}'.format(color.FAIL, color.END))
print(e)
Expand All @@ -45,7 +45,7 @@ def get_sail_dir():
if p.returncode == 0:
return p.stdout.strip()
else:
print('{}Unable to get Sail library directory from opam{}'.format(color.FAIL, color.END))
print('{}Unable to get Sail library directory from sail --dir{}'.format(color.FAIL, color.END))
print('{}stdout{}:'.format(color.NOTICE, color.END))
print(p.stdout)
print('{}stderr{}:'.format(color.NOTICE, color.END))
Expand Down

0 comments on commit 1e24db9

Please sign in to comment.