Skip to content

Commit

Permalink
Fix setting workdir for non-containerised builds
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoWilken committed Feb 26, 2024
1 parent 56ed1c6 commit 58a0bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alibuild_helpers/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def build_or_unpack_package(package, specs, args):
"provenance": create_provenance_info(spec["package"], specs, args),
"initdotsh_deps": generate_initdotsh(package, specs, args.architecture, post_build=False),
"initdotsh_full": generate_initdotsh(package, specs, args.architecture, post_build=True),
"workDir": args.workDir,
"workDir": os.path.abspath(args.workDir),
"configDir": abspath(args.configDir),
"incremental_recipe": spec.get("incremental_recipe", ":"),
"sourceDir": (dirname(source) + "/") if source else "",
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ commands =

# Make sure that etc/profile.d/init.sh is re-written properly, even if the package build overwrites it.
# In particular, AliEn-Runtime does this, so we must handle this.
sh -c 'coverage run --source={toxinidir} -a {toxinidir}/aliBuild -c {toxinidir}/tests/testdist build clobber-initdotsh -a {env:ARCHITECTURE} --no-system --no-remote-store >&2 && WORK_DIR=$PWD/sw . sw/{env:ARCHITECTURE}/clobber-initdotsh/1-local1/etc/profile.d/init.sh'
sh -c 'coverage run --source={toxinidir} -a {toxinidir}/aliBuild -c {toxinidir}/tests/testdist --debug build clobber-initdotsh -a {env:ARCHITECTURE} --no-system --no-remote-store >&2 && WORK_DIR=$PWD/sw . sw/{env:ARCHITECTURE}/clobber-initdotsh/1-local1/etc/profile.d/init.sh'
# AliRoot-OCDB deletes $INSTALLROOT/etc/ during build, so make sure we can handle that fine too.
sh -c 'coverage run --source={toxinidir} -a {toxinidir}/aliBuild -c {toxinidir}/tests/testdist build delete-etc -a {env:ARCHITECTURE} --no-system --no-remote-store >&2 && WORK_DIR=$PWD/sw . sw/{env:ARCHITECTURE}/delete-etc/1-local1/etc/profile.d/init.sh'
sh -c 'coverage run --source={toxinidir} -a {toxinidir}/aliBuild -c {toxinidir}/tests/testdist --debug build delete-etc -a {env:ARCHITECTURE} --no-system --no-remote-store >&2 && WORK_DIR=$PWD/sw . sw/{env:ARCHITECTURE}/delete-etc/1-local1/etc/profile.d/init.sh'

coverage run --source={toxinidir} -a {toxinidir}/aliBuild build zlib -a {env:ARCHITECTURE} --no-system --disable GCC-Toolchain
alienv -a {env:ARCHITECTURE} q
Expand Down

0 comments on commit 58a0bde

Please sign in to comment.