Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LbPlatformUtils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LHCb Core Software
LbPlatformUtils
Merge requests
!93
Fix running from non-standard mounts like /eos/user
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix running from non-standard mounts like /eos/user
cburr/fixes
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Chris Burr
requested to merge
cburr/fixes
into
master
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
Part of fixing
LbEnv#48 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
88a3fc96
1 commit,
1 year ago
2 files
+
21
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
LbPlatformUtils/debug.py
+
8
−
0
Options
@@ -184,12 +184,20 @@ def check_apptainer(results):
def
run_cmd
(
results
,
command
):
cmd
=
join_cmd
(
command
)
# Having PWD set causes some versions of apptainer to ignore the current
# working directory and, if the path in PWD contains symlinks, apptainer can
# fail to set the current working directory correctly and default to $HOME.
env
=
os
.
environ
.
copy
()
env
.
pop
(
"
PWD
"
,
None
)
try
:
proc
=
subprocess
.
Popen
(
command
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
True
,
env
=
env
,
)
stdout
,
stderr
=
proc
.
communicate
()
except
FileNotFoundError
:
Loading