[intellij-sh] Fix tests

GitOrigin-RevId: bb8e9abe77606f40110cf87d8135c608ae5c28dc
This commit is contained in:
Mikhail Mazurkevich
2019-12-27 14:07:55 +00:00
committed by intellij-monorepo-bot
parent 57c3798aa9
commit 8f2609bef5
@@ -69,7 +69,7 @@ public class ShShellcheckExternalAnnotator extends ExternalAnnotator<ShShellchec
public ShellcheckResponse doAnnotate(@NotNull CollectedInfo fileInfo) {
// Temporary solution to avoid execution under read action in dumb mode. Should be removed after IDEA-229905 will be fixed
Application application = ApplicationManager.getApplication();
if (application != null && application.isReadAccessAllowed()) return null;
if (application != null && application.isReadAccessAllowed() && !application.isUnitTestMode()) return null;
String shellcheckExecutable = ShSettings.getShellcheckPath();
if (!ShShellcheckUtil.isExecutionValidPath(shellcheckExecutable)) return null;