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/20 16:59:59 UTC
mesos git commit: Fixed `balloon_framework_test.sh` and related test
failures.
Repository: mesos
Updated Branches:
refs/heads/master 498591e88 -> e057fd160
Fixed `balloon_framework_test.sh` and related test failures.
As executors no longer inherit environmental variables from the agent's
enviroment, `LD_LIBRARY_PATH` has to be set for the executor using the
`executor_environment_variables` flag. Otherwise the executor will fail
to run and as a consequence
`ContainerizerTest.ROOT_CGROUPS_BalloonFramework` also fails.
Review: https://reviews.apache.org/r/48954/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e057fd16
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e057fd16
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e057fd16
Branch: refs/heads/master
Commit: e057fd16052669ff240754d49693efcc857f63ec
Parents: 498591e
Author: Jan Schlicht <ja...@mesosphere.io>
Authored: Mon Jun 20 09:59:45 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Jun 20 09:59:45 2016 -0700
----------------------------------------------------------------------
src/tests/balloon_framework_test.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/e057fd16/src/tests/balloon_framework_test.sh
----------------------------------------------------------------------
diff --git a/src/tests/balloon_framework_test.sh b/src/tests/balloon_framework_test.sh
index e0b0b04..54129fb 100755
--- a/src/tests/balloon_framework_test.sh
+++ b/src/tests/balloon_framework_test.sh
@@ -114,8 +114,14 @@ 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
+${BALLOON_FRAMEWORK} \
+ --master=127.0.0.1:5432 \
+ --task_memory_usage_limit=1024MB \
+ --task_memory=32MB \
+ --executor_environment_variables=${EXECUTOR_ENVIRONMENT_VARIABLES}
STATUS=${?}
# Make sure the balloon framework "failed".