fix test function
authorLiana Bakradze <liana.bakradze@jetbrains.com>
Wed, 24 Sep 2014 10:02:58 +0000 (14:02 +0400)
committerLiana Bakradze <liana.bakradze@jetbrains.com>
Wed, 24 Sep 2014 10:02:58 +0000 (14:02 +0400)
python/edu/course-creator/src/org/jetbrains/plugins/coursecreator/CCRunTests.java

index 77597ad12f644243e7a6f21d3cd19ca3fe74da6d..3217bc0cf05edd982580d11c693f1b5e2d751e80 100644 (file)
@@ -35,6 +35,7 @@ import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.vfs.VirtualFileManager;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiFile;
+import com.intellij.util.PathUtil;
 import com.intellij.util.containers.HashMap;
 import com.jetbrains.python.run.PythonConfigurationType;
 import com.jetbrains.python.run.PythonRunConfiguration;
@@ -189,7 +190,7 @@ public class CCRunTests extends AnAction {
     if (courseDir == null) {
       return;
     }
-    configuration.setScriptParameters(courseDir.getPath() + " " + userFile.getPath());
+    configuration.setScriptParameters(PathUtil.toSystemDependentName(courseDir.getPath()) + " " + PathUtil.toSystemDependentName(userFile.getPath()));
     Executor executor = DefaultRunExecutor.getRunExecutorInstance();
     ProgramRunnerUtil.executeConfiguration(project, settings, executor);
   }