Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
Mesosphere Sprint 29, Mesosphere Sprint 30
-
2
Description
We may want to add a helper to stout/os.hpp that will natively emulate the functionality of the Linux utility which. i.e.
Option<string> which(const string& command) { Option<string> path = os::getenv("PATH"); // Loop through path and return the first one which os::exists(...). return None(); }
This helper may be useful:
- for test filters in src/tests/environment.cpp
- a few tests in src/tests/containerizer/port_mapping_tests.cpp
- the sha512 utility in src/common/command_utils.cpp
- as runtime checks in the LogrotateContainerLogger
- etc.
Attachments
Issue Links
- relates to
-
MESOS-4454 Create common sha512 compute utility function.
- Resolved
-
MESOS-4556 ShasumTest.SHA512SimpleFile failed on centos7.
- Resolved