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 2018/05/25 05:15:09 UTC

mesos git commit: Fixed an issue with an older shell in a slave test.

Repository: mesos
Updated Branches:
  refs/heads/master d2ab700cd -> 2e874dc98


Fixed an issue with an older shell in a slave test.

Used `-eq` instead of `==` for the uid test so that it works on all
platforms that we support.


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

Branch: refs/heads/master
Commit: 2e874dc98fa6fdfc657b2f8568fdce0c871b8c5e
Parents: d2ab700
Author: Jie Yu <yu...@gmail.com>
Authored: Thu May 24 22:14:02 2018 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu May 24 22:14:08 2018 -0700

----------------------------------------------------------------------
 src/tests/slave_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/2e874dc9/src/tests/slave_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/slave_tests.cpp b/src/tests/slave_tests.cpp
index 068eb5e..d46f65b 100644
--- a/src/tests/slave_tests.cpp
+++ b/src/tests/slave_tests.cpp
@@ -1069,7 +1069,7 @@ TEST_F(SlaveTest, ROOT_UNPRIVILEGED_USER_RunTaskWithCommandInfoWithUser)
 
   TaskInfo task = createTask(
       offers->at(0),
-      "test `id -u` == " + stringify(uid.get()));
+      "test `id -u` -eq " + stringify(uid.get()));
 
   task.mutable_command()->set_user(user.get());