diff --git a/src/run/runner/valgrind/executor.rs b/src/run/runner/valgrind/executor.rs index 14321d3d..13dbbd67 100644 --- a/src/run/runner/valgrind/executor.rs +++ b/src/run/runner/valgrind/executor.rs @@ -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(()) diff --git a/src/run/runner/valgrind/helpers/venv_compat.sh b/src/run/runner/valgrind/helpers/venv_compat.sh index d671315f..fb5ac21e 100755 --- a/src/run/runner/valgrind/helpers/venv_compat.sh +++ b/src/run/runner/valgrind/helpers/venv_compat.sh @@ -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"))" @@ -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"