Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions src/run/runner/valgrind/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ impl Executor for ValgrindExecutor {
install_valgrind(system_info).await?;

if let Err(error) = venv_compat::symlink_libpython(None) {
error!("Failed to symlink libpython: {error}");
} else {
info!("Successfully added symlink for libpython in the venv");
warn!("Failed to symlink libpython");
debug!("Script error: {error}");
}

Ok(())
Expand Down
4 changes: 2 additions & 2 deletions src/run/runner/valgrind/helpers/venv_compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function add_symlink() {
system_python="$(readlink -f "$venv_python")"
if [ -z "$system_python" ]; then
echo "Error: Failed to resolve real path for $venv_python" >&2
return 1
return 0
fi

system_path="$(dirname $(dirname "$system_python"))"
Expand All @@ -17,7 +17,7 @@ function add_symlink() {
libpython_name="$(ldd "$venv_python" 2>/dev/null | grep -o -m1 'libpython[^[:space:]]*' || true)"
if [ -z "$libpython_name" ]; then
echo "Error: exact libpython name not found in $(ldd $venv_python)" >&2
return 1
return 0
fi
echo "Found linked libpython: $libpython_name"

Expand Down
Loading