diff --git a/run_tests.sh b/run_tests.sh
index 2f87113e1576367e75f0f51ad6851c567c834778..c0cd397d99e70c25099758fc47f6fead1148ca10 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -2,6 +2,8 @@
 # This script is designed for local usage.
 
 # Code coverage does not seem work without /nfs4 or /gpfs access
+export VIRTUAL_ENV=$NRP_VIRTUAL_ENV
+
 make test-nocover
 RET=$?
 
diff --git a/verify.sh b/verify.sh
index dcd9a59f94d0c505ee84566835c654e180d319ca..58373b3b02445a7c37986dbc7e8adf0b119468f2 100755
--- a/verify.sh
+++ b/verify.sh
@@ -3,6 +3,7 @@
 
 # Ignore generated files.
 export IGNORE_LINT="platform_venv"
+export VIRTUAL_ENV=$NRP_VIRTUAL_ENV
 
 # This script only runs static code analysis, the tests can be run separately using run_tests.sh
 make run_pep8 run_pylint