diff --git a/cmake_targets/autotests/v2/main.py b/cmake_targets/autotests/v2/main.py
index a006a63d141e2f2403dcbc302599ebb0e85b3a4f..6cf3b97c3608579706058f0ba465c84f86fbb734 100644
--- a/cmake_targets/autotests/v2/main.py
+++ b/cmake_targets/autotests/v2/main.py
@@ -233,7 +233,7 @@ class ExecutionThread(threading.Thread):
         for arg in args.splitlines():
             i = i+1
             runenv2 = list(runenv)
-            runenv2.append('OPENAIR_TARGET=/tmp/oai_test_setup/oai/targets')
+            runenv2.append('OPENAIR_TARGETS=/tmp/oai_test_setup/oai/targets')
             runenv2.append('EXEC="'
                              + test.findtext('main_exec')
                              + '"')