Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test/framework/toy_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import sys
import tempfile
from distutils.version import LooseVersion
from test.framework.utilities import EnhancedTestCase, TestLoaderFiltered, init_config
from test.framework.utilities import EnhancedTestCase, TestLoaderFiltered
from test.framework.package import mock_fpm
from unittest import TextTestRunner

Expand Down Expand Up @@ -2855,9 +2855,8 @@ def test_fix_shebang(self):
"Pattern '%s' found in %s: %s" % (bash_shebang_regex.pattern, bashbin_path, bashbin_txt))

# now test with a custom env command
init_config(build_options={'env_for_shebang': "/usr/bin/env -S"})

self.test_toy_build(ec_file=test_ec, raise_error=True)
extra_args = ['--env-for-shebang=/usr/bin/env -S']
self.test_toy_build(ec_file=test_ec, extra_args=extra_args, raise_error=True)

toy_bindir = os.path.join(self.test_installpath, 'software', 'toy', '0.0', 'bin')

Expand Down