File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
testdata/context/overrides/settings Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -773,6 +773,9 @@ def get_extra_environ(
773773 "MAX_JOBS" : str (jobs ),
774774 }
775775
776+ # make MAX_JOBS available to substitution
777+ template_env .update (extra_environ )
778+
776779 # add VIRTUAL_ENV and update PATH, so templates can use the values
777780 if build_env is not None :
778781 venv_environ = build_env .get_venv_environ (template_env = template_env )
Original file line number Diff line number Diff line change 5454 "SPAM" : "alot $EXTRA" ,
5555 "QUOTES" : "A\" BC'$$EGG" ,
5656 "DEF" : "${DEF:-default}" ,
57+ "EXTRA_MAX_JOBS" : "${MAX_JOBS}" ,
5758 },
5859 "git_options" : {
5960 "submodules" : False ,
@@ -166,6 +167,7 @@ def test_pbi_test_pkg_extra_environ(
166167 "CMAKE_BUILD_PARALLEL_LEVEL" : "1" ,
167168 "MAKEFLAGS" : "-j1" ,
168169 "MAX_JOBS" : "1" ,
170+ "EXTRA_MAX_JOBS" : "1" ,
169171 }
170172
171173 pbi = testdata_context .settings .package_build_info (TEST_PKG )
Original file line number Diff line number Diff line change 1919 SPAM : " alot $EXTRA"
2020 QUOTES : " A\" BC'$$EGG"
2121 DEF : " ${DEF:-default}"
22+ EXTRA_MAX_JOBS : " ${MAX_JOBS}"
2223download_source :
2324 url : https://egg.test/${canonicalized_name}/v${version}.tar.gz
2425 destination_filename : ${canonicalized_name}-${version}.tar.gz
You can’t perform that action at this time.
0 commit comments