Allow overriding test executable with env var A1_PATH

This commit is contained in:
Sami Samhuri 2022-01-22 15:35:58 -08:00
parent b4a1f28a11
commit f16bd5f814
No known key found for this signature in database
GPG key ID: 4B4195422742FC16

View file

@ -3,7 +3,7 @@ require 'minitest/autorun'
class ShellTest < Minitest::Test
TRIVIAL_SHELL_SCRIPT = "#!/bin/sh\ntrue".freeze
A1_PATH = './a1'.freeze
A1_PATH = ENV.fetch('A1_PATH', './a1').freeze
def setup
FileUtils.mkdir_p('test_bin')