You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Andrew Schwartzmeyer (JIRA)" <ji...@apache.org> on 2017/11/14 20:51:00 UTC

[jira] [Commented] (MESOS-8225) Port os::which to Windows

    [ https://issues.apache.org/jira/browse/MESOS-8225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16252160#comment-16252160 ] 

Andrew Schwartzmeyer commented on MESOS-8225:
---------------------------------------------

{noformat}
'which' is not recognized as an internal or external command,
operable program or batch file.
{noformat}

> Port os::which to Windows
> -------------------------
>
>                 Key: MESOS-8225
>                 URL: https://issues.apache.org/jira/browse/MESOS-8225
>             Project: Mesos
>          Issue Type: Bug
>          Components: stout, test
>         Environment: Windows
>            Reporter: Andrew Schwartzmeyer
>              Labels: windows
>
> The stout helper `os::which` fails on Windows uncondtionally because it tries using the `which` command, which of course doesn't exist. An equivalent is {{powershell -c get-command -type application}}; however, we may also just want to implement this in C++.
> Sadly, because this fails, a lot of test filters fail. For instance, none of the {{INTERNET}} tests run because they use {{os::which}} to check for ping before running ping to check for internet connectivity. Ping does exist, but it's "not found" which is incorrect, and misleading.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)