You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2019/02/12 19:41:09 UTC
[mesos] 08/09: Fixed `ROOT_PidNamespace` test after enabling
launcher sealing.
This is an automated email from the ASF dual-hosted git repository.
gilbert pushed a commit to branch 1.5.x
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit eeec1ccf475e98e399c6dc886a54be17b5a37675
Author: Andrei Budnik <ab...@mesosphere.com>
AuthorDate: Mon Feb 11 12:51:31 2019 -0800
Fixed `ROOT_PidNamespace` test after enabling launcher sealing.
Previously, this test accessed `comm` file of `init` process to
find out the name of the containerizer launcher binary. After we
introduced launcher sealing, this file does not represent binary
name anymore, so we are accessing `cmdline` file instead.
Review: https://reviews.apache.org/r/69951/
(cherry picked from commit b0b5e3d89542ce2b958953326ab6b94f718d134e)
---
src/tests/containerizer/isolator_tests.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tests/containerizer/isolator_tests.cpp b/src/tests/containerizer/isolator_tests.cpp
index bdc3619..0f82516 100644
--- a/src/tests/containerizer/isolator_tests.cpp
+++ b/src/tests/containerizer/isolator_tests.cpp
@@ -120,7 +120,7 @@ TEST_F(NamespacesIsolatorTest, ROOT_PidNamespace)
// Write the command's pid namespace inode and init name to files.
const string command =
- "stat -Lc %i /proc/self/ns/pid > ns && (cat /proc/1/comm > init)";
+ "stat -Lc %i /proc/self/ns/pid > ns && (cat /proc/1/cmdline > init)";
process::Future<Containerizer::LaunchResult> launch =
containerizer.get()->launch(