diff --git a/update-test-path b/update-test-path
index 61174ffba24e5f9d5fa56269cc22b3911bde093e..5e0c115a2b31ed4fd738385118d12ae70498f698 100644
--- a/update-test-path
+++ b/update-test-path
@@ -12,5 +12,5 @@ aarch64) ARCHDIR=arm64 ;;
 esac
 
 PATH=${TESTPATH}/${ARCHDIR}/bin:$PATH
-export LD_LIBRARY_PATH=${TESTPATH}/${ARCHDIR}/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=${TESTPATH}/${ARCHDIR}/lib:${LD_LIBRARY_PATH:-}