-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26894/#review62478
-----------------------------------------------------------



src/tests/active_user_test_helper.cpp
<https://reviews.apache.org/r/26894/#comment104521>

    How about:
    
    // This helper program takes a an expected user.
    // Returns 0 if the current username equals the expected username.
    // Returns 1 otherwise.



src/tests/active_user_test_helper.cpp
<https://reviews.apache.org/r/26894/#comment104518>

    I think you'll just want to use cout and cerr, otherwise you should 
initialize glog first.
    
    Note that we usually print out Usage information without using LOG(...).



src/tests/active_user_test_helper.cpp
<https://reviews.apache.org/r/26894/#comment104519>

    newline?



src/tests/active_user_test_helper.cpp
<https://reviews.apache.org/r/26894/#comment104523>

    Curious, do we have to do all this Subprocess stuff with 'whoami' or can we 
just use os::user?
    
    ```
    Result<std::string> user = os::user();
    
    if (user.isSome() && user.get() == expected) {
      return 0;
    }
    
    return 1;
    ```
    
    If not, let's document why whoami is needed!


- Ben Mahler


On Nov. 19, 2014, 4:53 p.m., Niklas Nielsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/26894/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2014, 4:53 p.m.)
> 
> 
> Review request for mesos and Ben Mahler.
> 
> 
> Bugs: MESOS-1359
>     https://issues.apache.org/jira/browse/MESOS-1359
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> The 'nobody' user is restricted on some systems from shell access and broke 
> the task.user tests (which have been disabled since then).
> With the command.shell field, the test can run the command directly.
> 
> 
> Diffs
> -----
> 
>   src/Makefile.am 0fe7dd067b80cfe802201482eed63a30ac8dcbd4 
>   src/tests/active_user_test_helper.cpp PRE-CREATION 
>   src/tests/slave_tests.cpp 4675dac95e7a9964bdf22259b85d6dd0081af708 
> 
> Diff: https://reviews.apache.org/r/26894/diff/
> 
> 
> Testing
> -------
> 
> make check on linux as root
> 
> 
> Thanks,
> 
> Niklas Nielsen
> 
>

Reply via email to