void () { Assume.assumeTrue("NST-unsupported OS", NST.isSupportedOS()); final GeneralCommandLine cmdLine = new GeneralCommandLine("pgrep", "ser"); try { final ProcessOutput out = ExecUtil.execAndGetOutput(cmdLine); assertNotNull("ProcessOutput mustn't be null", out); assertNotNull("ProcessOutput.getStdout() mustn't be null", out.getStdout()); } catch (ExecutionException e) { fail("pgrep failed with exception: " + e.getMessage()); } // TODO: // 1. ensure that isTouchbarServerRunning() == true on some known models // for example MacBookPro14,3 (it's the model indentifier, don't mix with screen size) // 2. test that can restart server (i.e. pkill with sudo) // 3. check that 'isTouchbarServerRunning() == isSettingsDomainExists()' }