You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/06/22 17:28:07 UTC

mesos git commit: Fix ContainerizerTest.ROOT_CGROUPS_BalloonFramework.

Repository: mesos
Updated Branches:
  refs/heads/master 87cf5bc54 -> aa3238f44


Fix ContainerizerTest.ROOT_CGROUPS_BalloonFramework.

https://reviews.apache.org/r/48954/ did not set the
`--executor_environment_variables` agent flag in the correct place.
This caused the balloon framework to fail with flag validation errors.
Since this test expects a failure, the test would always succeed for the
wrong reason.

Review: https://reviews.apache.org/r/49054/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/aa3238f4
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/aa3238f4
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/aa3238f4

Branch: refs/heads/master
Commit: aa3238f44aed308cb3f92536eca42b24e942fa39
Parents: 87cf5bc
Author: Joseph Wu <jo...@mesosphere.io>
Authored: Wed Jun 22 10:28:03 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Jun 22 10:28:03 2016 -0700

----------------------------------------------------------------------
 src/tests/balloon_framework_test.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/aa3238f4/src/tests/balloon_framework_test.sh
----------------------------------------------------------------------
diff --git a/src/tests/balloon_framework_test.sh b/src/tests/balloon_framework_test.sh
index 54129fb..78d534f 100755
--- a/src/tests/balloon_framework_test.sh
+++ b/src/tests/balloon_framework_test.sh
@@ -93,6 +93,7 @@ if [[ ${STATUS} -ne 0 ]]; then
   exit 2
 fi
 
+EXECUTOR_ENVIRONMENT_VARIABLES="{\"LD_LIBRARY_PATH\":\"${LD_LIBRARY_PATH}\"}"
 
 # Launch agent.
 ${AGENT} \
@@ -101,6 +102,7 @@ ${AGENT} \
     --isolation=cgroups/mem \
     --cgroups_hierarchy=${TEST_CGROUP_HIERARCHY} \
     --cgroups_root=${TEST_CGROUP_ROOT} \
+    --executor_environment_variables=${EXECUTOR_ENVIRONMENT_VARIABLES} \
     --resources="cpus:1;mem:96" &
 AGENT_PID=${!}
 echo "${GREEN}Launched agent at ${AGENT_PID}${NORMAL}"
@@ -114,14 +116,11 @@ if [[ ${STATUS} -ne 0 ]]; then
   exit 2
 fi
 
-EXECUTOR_ENVIRONMENT_VARIABLES="{ \"LD_LIBRARY_PATH\": \"${LD_LIBRARY_PATH}\" }"
-
 # The main event!
 ${BALLOON_FRAMEWORK} \
     --master=127.0.0.1:5432 \
     --task_memory_usage_limit=1024MB \
-    --task_memory=32MB \
-    --executor_environment_variables=${EXECUTOR_ENVIRONMENT_VARIABLES}
+    --task_memory=32MB
 STATUS=${?}
 
 # Make sure the balloon framework "failed".