diff --git a/scripts/test-all.sh b/scripts/test-all.sh
index 9e2bcdff6feab46649a85aae9eefc3e189bbabc4..06f32d20528fe3443609e82ae8fe4b25e40edeca 100644
--- a/scripts/test-all.sh
+++ b/scripts/test-all.sh
@@ -102,7 +102,7 @@ bake_all () {
     # Init the build environment
     cd "$path_to_project_root_relative_to_script"
     build_directory=build
-    source ./oe-init-env $build_directory
+    source ./oe-init-build-env $build_directory
 
     # Go to the meta-ros git repository location to gather information about commits.
     cd ../meta-ros