[ 
https://issues.apache.org/jira/browse/MESOS-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dominic Hamon closed MESOS-1423.
--------------------------------

    Resolution: Duplicate

> MesosContainerizerExecuteTest.IoRedirection doesn't pass on OSX
> ---------------------------------------------------------------
>
>                 Key: MESOS-1423
>                 URL: https://issues.apache.org/jira/browse/MESOS-1423
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>            Reporter: Yan Xu
>
> {noformat}
> [ RUN      ] MesosContainerizerExecuteTest.IoRedirection
> Using temporary directory 
> '/tmp/MesosContainerizerExecuteTest_IoRedirection_d2HaEd'
> I0527 14:00:06.949267 2123838224 mesos_containerizer.cpp:124] Using 
> isolation: posix/cpu,posix/mem
> I0527 14:00:06.949887 293957632 mesos_containerizer.cpp:537] Starting 
> container 'test_container' for executor 'executor' of framework ''
> I0527 14:00:06.950804 292884480 launcher.cpp:117] Forked child with pid 
> '29433' for container 'test_container'
> I0527 14:00:06.951549 292884480 mesos_containerizer.cpp:647] Fetching URIs 
> for container 'test_container' using command 
> '/Users/jyx/Dropbox/MyCode/twitter/mesos/build/src/mesos-fetcher'
> I0527 14:00:08.952647 292347904 mesos_containerizer.cpp:1103] Executor for 
> container 'test_container' has exited
> I0527 14:00:08.952719 292347904 mesos_containerizer.cpp:987] Destroying 
> container 'test_container'
> ../../src/tests/containerizer_tests.cpp:486: Failure
> Value of: (os::read(path::join(directory, "stderr"))).get()
>   Actual: "-n this is stderr\n"
> Expected: errMsg
> Which is: "this is stderr"
> ../../src/tests/containerizer_tests.cpp:487: Failure
> Value of: (os::read(path::join(directory, "stdout"))).get()
>   Actual: "-n this is stderr\n"
> Expected: outMsg
> Which is: "this is stderr"
> [  FAILED  ] MesosContainerizerExecuteTest.IoRedirection (2022 ms)
> [----------] 1 test from MesosContainerizerExecuteTest (2022 ms total)
> {noformat}
> The reason seems to be 
> {noformat}
> Some shells may provide a builtin echo command which is similar or identical 
> to this utility.  Most notably, the builtin echo in sh(1) does not accept the 
> -n option.  Consult the builtin(1) manual page.
> {noformat}
> The fix could be to spell out the full path /bin/echo or add newline 
> character in the string variable 
> [errMsg|https://github.com/apache/mesos/blob/f51f33dc2a2be13f06057d6b60e4cb4f449be1db/src/tests/containerizer_tests.cpp#L459].



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to