fixed PY-11394 "no tests were found" with django 1.6 DiscoverRunner
authorEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Wed, 20 Nov 2013 12:26:36 +0000 (16:26 +0400)
committerEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Wed, 20 Nov 2013 12:26:36 +0000 (16:26 +0400)
python/src/com/jetbrains/python/testing/PythonTestCommandLineStateBase.java

index ef16a65a7658ba0fdf92cb280b3c7daf91d0f7b7..39e4e96b836bb7e86985f1e88c70cf3b6c73b11a 100644 (file)
@@ -106,9 +106,10 @@ public abstract class PythonTestCommandLineStateBase extends PythonCommandLineSt
     return cmd;
   }
 
-  private void setWorkingDirectory(@NotNull final GeneralCommandLine cmd) {
-    if (!StringUtil.isEmptyOrSpaces(myConfiguration.getWorkingDirectory())) {
-      cmd.setWorkDirectory(myConfiguration.getWorkingDirectory());
+  protected void setWorkingDirectory(@NotNull final GeneralCommandLine cmd) {
+    final String workingDirectory = myConfiguration.getWorkingDirectory();
+    if (!StringUtil.isEmptyOrSpaces(workingDirectory)) {
+      cmd.setWorkDirectory(workingDirectory);
     }
     else if (myConfiguration instanceof AbstractPythonTestRunConfiguration) {
       final String folderName = ((AbstractPythonTestRunConfiguration)myConfiguration).getFolderName();