Support coverage for Docker based interpreter

This commit is contained in:
Dmitry Trofimov
2015-10-05 15:48:20 +02:00
parent 2004a19942
commit a7201d48b8
3 changed files with 10 additions and 2 deletions
@@ -14,7 +14,7 @@ else:
coverage_file = os.getenv('PYCHARM_COVERAGE_FILE')
run_cov = os.getenv('PYCHARM_RUN_COVERAGE')
if os.getenv('JETBRAINS_REMOTE_RUN'):
if os.getenv('CREATE_TEMP_COVERAGE_FILE'):
line = 'LOG: PyCharm: File mapping:%s\t%s\n'
import tempfile
(h, new_cov_file) = tempfile.mkstemp(prefix='pycharm-coverage')
@@ -15,8 +15,8 @@
*/
package com.jetbrains.python.remote;
import com.intellij.util.PathMappingSettings;
import com.intellij.util.AbstractPathMapper;
import com.intellij.util.PathMappingSettings;
import com.intellij.util.containers.MultiMap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -111,4 +111,9 @@ public class PyRemotePathMapper extends AbstractPathMapper implements Cloneable
}
return pathMapper;
}
@Override
public PyRemotePathMapper clone() {
return cloneMapper(this);
}
}
@@ -59,6 +59,9 @@ public abstract class PythonRemoteInterpreterManager {
public final static Key<PathMapper> PATH_MAPPING_SETTINGS_KEY = Key.create("PATH_MAPPING_SETTINGS_KEY");
public final static Key<PathMappingSettings> ADDITIONAL_MAPPINGS = Key.create("ADDITIONAL_MAPPINGS");
/**
* @deprecated use {@link com.jetbrains.python.run.PyRemoteProcessStarterManager#startRemoteProcess(Project, GeneralCommandLine, PythonRemoteInterpreterManager, PyRemoteSdkAdditionalDataBase, PyRemotePathMapper)}
*/