You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by nn...@apache.org on 2014/04/29 02:41:02 UTC

git commit: Fixed incorrect invocation of the mesos-executor within test_containerizer.py.

Repository: mesos
Updated Branches:
  refs/heads/master e3fe8a316 -> 12511606a


Fixed incorrect invocation of the mesos-executor within test_containerizer.py.

The incorrect invocation of the mesos-containerizer would possibly
trigger problems. This should get rid of failures where the slave runs
into a timeout when waiting for the executor registration on
ExternalContainerizerTest.Launch.

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


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

Branch: refs/heads/master
Commit: 12511606aa0d44df4ea8ba442860f850cef0e2fb
Parents: e3fe8a3
Author: Till Toenshoff <to...@me.com>
Authored: Mon Apr 28 17:10:49 2014 -0700
Committer: Niklas Q. Nielsen <ni...@mesosphere.io>
Committed: Mon Apr 28 17:24:52 2014 -0700

----------------------------------------------------------------------
 src/examples/python/test_containerizer.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/12511606/src/examples/python/test_containerizer.py
----------------------------------------------------------------------
diff --git a/src/examples/python/test_containerizer.py b/src/examples/python/test_containerizer.py
index 57b4bb6..7bebfee 100644
--- a/src/examples/python/test_containerizer.py
+++ b/src/examples/python/test_containerizer.py
@@ -103,10 +103,9 @@ def launch():
             print >> sys.stderr, "No executor passed; using mesos-executor!"
             executor = os.path.join(os.environ['MESOS_LIBEXEC_DIRECTORY'],
                                     "mesos-executor")
-            command = [executor,
-                       "sh",
+            command = ["sh",
                        "-c",
-                       launch.task_info.command.value]
+                       executor]
             print >> sys.stderr, "command " + str(command)
 
         lock_dir = os.path.join("/tmp/mesos-test-containerizer",