| 1 |
"""Run mutation tests.""" |
|
| 2 | ||
| 3 |
from __future__ import annotations |
|
| 4 | ||
| 5 |
import logging |
|
| 6 |
import os |
|
| 7 |
import shlex |
|
| 8 |
import subprocess |
|
| 9 |
from pathlib import Path |
|
| 10 |
from subprocess import TimeoutExpired |
|
| 11 | ||
| 12 |
from poodle.data_types import Mutant, MutantTrialResult, PoodleConfig |
|
| 13 |
from poodle.util import pprint_str |
|
| 14 | ||
| ▸ | 15 |
logger = logging.getLogger(__name__) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py +++ [Mutant] src\poodle\runners\command_line.py:15 @@ -12,7 +12,7 @@ from poodle.data_types import Mutant, MutantTrialResult, PoodleConfig from poodle.util import pprint_str -logger = logging.getLogger(__name__) +logger = None def runner( |
||
| 16 | ||
| 17 | ||
| 18 |
def runner( |
|
| 19 |
config: PoodleConfig, run_folder: Path, mutant: Mutant, timeout: float | None, *_, **__ |
|
| 20 |
) -> MutantTrialResult: |
|
| 21 |
"""Run test of mutant with command line command in subprocess.""" |
|
| ▸ | 22 |
logger.info("Running: run_folder=%s timeout=%s", run_folder, timeout)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:22
@@ -19,7 +19,7 @@
config: PoodleConfig, run_folder: Path, mutant: Mutant, timeout: float | None, *_, **__
) -> MutantTrialResult:
"""Run test of mutant with command line command in subprocess."""
- logger.info("Running: run_folder=%s timeout=%s", run_folder, timeout)
+ logger.info('XXRunning: run_folder=%s timeout=%sXX', run_folder, timeout)
cwd = Path.cwd().resolve()
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:22
@@ -19,7 +19,7 @@
config: PoodleConfig, run_folder: Path, mutant: Mutant, timeout: float | None, *_, **__
) -> MutantTrialResult:
"""Run test of mutant with command line command in subprocess."""
- logger.info("Running: run_folder=%s timeout=%s", run_folder, timeout)
+ None
cwd = Path.cwd().resolve()
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
|
||
| 23 | ||
| ▸ | 24 |
cwd = Path.cwd().resolve() |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:24
@@ -21,7 +21,7 @@
"""Run test of mutant with command line command in subprocess."""
logger.info("Running: run_folder=%s timeout=%s", run_folder, timeout)
- cwd = Path.cwd().resolve()
+ cwd = None
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
run_source_folder = run_folder.resolve() / mutant.source_folder
|
||
| ▸ | 25 |
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:25
@@ -22,7 +22,7 @@
logger.info("Running: run_folder=%s timeout=%s", run_folder, timeout)
cwd = Path.cwd().resolve()
- run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
+ run_cwd = run_folder.resolve() if mutant.source_folder.resolve() != cwd else cwd
run_source_folder = run_folder.resolve() / mutant.source_folder
run_env = os.environ.copy()
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:25
@@ -22,7 +22,7 @@
logger.info("Running: run_folder=%s timeout=%s", run_folder, timeout)
cwd = Path.cwd().resolve()
- run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
+ run_cwd = run_folder.resolve() if None == cwd else cwd
run_source_folder = run_folder.resolve() / mutant.source_folder
run_env = os.environ.copy()
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:25
@@ -22,7 +22,7 @@
logger.info("Running: run_folder=%s timeout=%s", run_folder, timeout)
cwd = Path.cwd().resolve()
- run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
+ run_cwd = None if mutant.source_folder.resolve() == cwd else cwd
run_source_folder = run_folder.resolve() / mutant.source_folder
run_env = os.environ.copy()
|
||
| ▸ | 26 |
run_source_folder = run_folder.resolve() / mutant.source_folder |
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:26
@@ -23,7 +23,7 @@
cwd = Path.cwd().resolve()
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
- run_source_folder = run_folder.resolve() / mutant.source_folder
+ run_source_folder = run_folder.resolve() * mutant.source_folder
run_env = os.environ.copy()
python_path = os.pathsep.join(
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:26
@@ -23,7 +23,7 @@
cwd = Path.cwd().resolve()
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
- run_source_folder = run_folder.resolve() / mutant.source_folder
+ run_source_folder = run_folder.resolve() - mutant.source_folder
run_env = os.environ.copy()
python_path = os.pathsep.join(
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:26
@@ -23,7 +23,7 @@
cwd = Path.cwd().resolve()
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
- run_source_folder = run_folder.resolve() / mutant.source_folder
+ run_source_folder = None / mutant.source_folder
run_env = os.environ.copy()
python_path = os.pathsep.join(
|
||
| 27 | ||
| ▸ | 28 |
run_env = os.environ.copy() |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:28
@@ -25,7 +25,7 @@
run_cwd = run_folder.resolve() if mutant.source_folder.resolve() == cwd else cwd
run_source_folder = run_folder.resolve() / mutant.source_folder
- run_env = os.environ.copy()
+ run_env = None
python_path = os.pathsep.join(
[
str(run_source_folder),
|
||
| ▸ | 29 |
python_path = os.pathsep.join( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:29
@@ -26,13 +26,7 @@
run_source_folder = run_folder.resolve() / mutant.source_folder
run_env = os.environ.copy()
- python_path = os.pathsep.join(
- [
- str(run_source_folder),
- str(Path.cwd().resolve()),
- run_env.get("PYTHONPATH", ""),
- ],
- )
+ python_path = None
update_env = {
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONPATH": python_path,
|
||
| 30 |
[ |
|
| 31 |
str(run_source_folder), |
|
| 32 |
str(Path.cwd().resolve()), |
|
| ▸ | 33 |
run_env.get("PYTHONPATH", ""),
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:33
@@ -30,7 +30,7 @@
[
str(run_source_folder),
str(Path.cwd().resolve()),
- run_env.get("PYTHONPATH", ""),
+ run_env.get('XXPYTHONPATHXX', ""),
],
)
update_env = {
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:33
@@ -30,7 +30,7 @@
[
str(run_source_folder),
str(Path.cwd().resolve()),
- run_env.get("PYTHONPATH", ""),
+ run_env.get("PYTHONPATH", 'XXXX'),
],
)
update_env = {
|
||
| 34 |
], |
|
| 35 |
) |
|
| 36 |
update_env = {
|
|
| ▸ | 37 |
"PYTHONDONTWRITEBYTECODE": "1", |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:37
@@ -34,7 +34,7 @@
],
)
update_env = {
- "PYTHONDONTWRITEBYTECODE": "1",
+ 'XXPYTHONDONTWRITEBYTECODEXX': "1",
"PYTHONPATH": python_path,
"MUT_SOURCE_FILE": str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:37
@@ -34,7 +34,7 @@
],
)
update_env = {
- "PYTHONDONTWRITEBYTECODE": "1",
+ "PYTHONDONTWRITEBYTECODE": 'XX1XX',
"PYTHONPATH": python_path,
"MUT_SOURCE_FILE": str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
|
||
| ▸ | 38 |
"PYTHONPATH": python_path, |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:38
@@ -35,7 +35,7 @@
)
update_env = {
"PYTHONDONTWRITEBYTECODE": "1",
- "PYTHONPATH": python_path,
+ 'XXPYTHONPATHXX': python_path,
"MUT_SOURCE_FILE": str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
|
||
| ▸ | 39 |
"MUT_SOURCE_FILE": str(mutant.source_file), |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:39
@@ -36,7 +36,7 @@
update_env = {
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONPATH": python_path,
- "MUT_SOURCE_FILE": str(mutant.source_file),
+ 'XXMUT_SOURCE_FILEXX': str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:39
@@ -36,7 +36,7 @@
update_env = {
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONPATH": python_path,
- "MUT_SOURCE_FILE": str(mutant.source_file),
+ "MUT_SOURCE_FILE": None,
"MUT_LINENO": str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
|
||
| ▸ | 40 |
"MUT_LINENO": str(mutant.lineno), |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:40
@@ -37,7 +37,7 @@
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONPATH": python_path,
"MUT_SOURCE_FILE": str(mutant.source_file),
- "MUT_LINENO": str(mutant.lineno),
+ 'XXMUT_LINENOXX': str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:40
@@ -37,7 +37,7 @@
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONPATH": python_path,
"MUT_SOURCE_FILE": str(mutant.source_file),
- "MUT_LINENO": str(mutant.lineno),
+ "MUT_LINENO": None,
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
|
||
| ▸ | 41 |
"MUT_END_LINENO": str(mutant.end_lineno), |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:41
@@ -38,7 +38,7 @@
"PYTHONPATH": python_path,
"MUT_SOURCE_FILE": str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
- "MUT_END_LINENO": str(mutant.end_lineno),
+ 'XXMUT_END_LINENOXX': str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
"MUT_TEXT": str(mutant.text),
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:41
@@ -38,7 +38,7 @@
"PYTHONPATH": python_path,
"MUT_SOURCE_FILE": str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
- "MUT_END_LINENO": str(mutant.end_lineno),
+ "MUT_END_LINENO": None,
"MUT_COL_OFFSET": str(mutant.col_offset),
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
"MUT_TEXT": str(mutant.text),
|
||
| ▸ | 42 |
"MUT_COL_OFFSET": str(mutant.col_offset), |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:42
@@ -39,7 +39,7 @@
"MUT_SOURCE_FILE": str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
- "MUT_COL_OFFSET": str(mutant.col_offset),
+ 'XXMUT_COL_OFFSETXX': str(mutant.col_offset),
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
"MUT_TEXT": str(mutant.text),
}
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:42
@@ -39,7 +39,7 @@
"MUT_SOURCE_FILE": str(mutant.source_file),
"MUT_LINENO": str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
- "MUT_COL_OFFSET": str(mutant.col_offset),
+ "MUT_COL_OFFSET": None,
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
"MUT_TEXT": str(mutant.text),
}
|
||
| ▸ | 43 |
"MUT_END_COL_OFFSET": str(mutant.end_col_offset), |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:43
@@ -40,7 +40,7 @@
"MUT_LINENO": str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
- "MUT_END_COL_OFFSET": str(mutant.end_col_offset),
+ 'XXMUT_END_COL_OFFSETXX': str(mutant.end_col_offset),
"MUT_TEXT": str(mutant.text),
}
if "command_line_env" in config.runner_opts:
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:43
@@ -40,7 +40,7 @@
"MUT_LINENO": str(mutant.lineno),
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
- "MUT_END_COL_OFFSET": str(mutant.end_col_offset),
+ "MUT_END_COL_OFFSET": None,
"MUT_TEXT": str(mutant.text),
}
if "command_line_env" in config.runner_opts:
|
||
| ▸ | 44 |
"MUT_TEXT": str(mutant.text), |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:44
@@ -41,7 +41,7 @@
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
- "MUT_TEXT": str(mutant.text),
+ 'XXMUT_TEXTXX': str(mutant.text),
}
if "command_line_env" in config.runner_opts:
update_env.update(config.runner_opts["command_line_env"])
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:44
@@ -41,7 +41,7 @@
"MUT_END_LINENO": str(mutant.end_lineno),
"MUT_COL_OFFSET": str(mutant.col_offset),
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
- "MUT_TEXT": str(mutant.text),
+ "MUT_TEXT": None,
}
if "command_line_env" in config.runner_opts:
update_env.update(config.runner_opts["command_line_env"])
|
||
| 45 |
} |
|
| ▸ | 46 |
if "command_line_env" in config.runner_opts: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:46
@@ -43,7 +43,7 @@
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
"MUT_TEXT": str(mutant.text),
}
- if "command_line_env" in config.runner_opts:
+ if 'command_line_env' not in config.runner_opts:
update_env.update(config.runner_opts["command_line_env"])
run_env.update(update_env)
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:46
@@ -43,7 +43,7 @@
"MUT_END_COL_OFFSET": str(mutant.end_col_offset),
"MUT_TEXT": str(mutant.text),
}
- if "command_line_env" in config.runner_opts:
+ if 'XXcommand_line_envXX' in config.runner_opts:
update_env.update(config.runner_opts["command_line_env"])
run_env.update(update_env)
|
||
| ▸ | 47 |
update_env.update(config.runner_opts["command_line_env"]) |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:47
@@ -44,7 +44,7 @@
"MUT_TEXT": str(mutant.text),
}
if "command_line_env" in config.runner_opts:
- update_env.update(config.runner_opts["command_line_env"])
+ update_env.update(config.runner_opts['XXcommand_line_envXX'])
run_env.update(update_env)
logger.debug("update_env=%s", pprint_str(update_env))
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:47
@@ -44,7 +44,7 @@
"MUT_TEXT": str(mutant.text),
}
if "command_line_env" in config.runner_opts:
- update_env.update(config.runner_opts["command_line_env"])
+ None
run_env.update(update_env)
logger.debug("update_env=%s", pprint_str(update_env))
Status: Mutant Found Mutator Name: DictArray Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:47
@@ -44,7 +44,7 @@
"MUT_TEXT": str(mutant.text),
}
if "command_line_env" in config.runner_opts:
- update_env.update(config.runner_opts["command_line_env"])
+ update_env.update(None)
run_env.update(update_env)
logger.debug("update_env=%s", pprint_str(update_env))
|
||
| ▸ | 48 |
run_env.update(update_env) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:48
@@ -45,7 +45,7 @@
}
if "command_line_env" in config.runner_opts:
update_env.update(config.runner_opts["command_line_env"])
- run_env.update(update_env)
+ None
logger.debug("update_env=%s", pprint_str(update_env))
|
||
| 49 | ||
| ▸ | 50 |
logger.debug("update_env=%s", pprint_str(update_env))
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:50
@@ -47,7 +47,7 @@
update_env.update(config.runner_opts["command_line_env"])
run_env.update(update_env)
- logger.debug("update_env=%s", pprint_str(update_env))
+ logger.debug('XXupdate_env=%sXX', pprint_str(update_env))
cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
cmd = cmd.format(PYTHONPATH=python_path)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:50
@@ -47,7 +47,7 @@
update_env.update(config.runner_opts["command_line_env"])
run_env.update(update_env)
- logger.debug("update_env=%s", pprint_str(update_env))
+ None
cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
cmd = cmd.format(PYTHONPATH=python_path)
|
||
| 51 | ||
| ▸ | 52 |
cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:52
@@ -49,7 +49,7 @@
logger.debug("update_env=%s", pprint_str(update_env))
- cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
+ cmd: str = config.runner_opts.get('XXcommand_lineXX', "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
cmd = cmd.format(PYTHONPATH=python_path)
logger.debug("command: %s", cmd)
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:52
@@ -49,7 +49,7 @@
logger.debug("update_env=%s", pprint_str(update_env))
- cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
+ cmd: str = config.runner_opts.get("command_line", "XXpytest -x --assert=plain -o pythonpath='{PYTHONPATH}'XX")
cmd = cmd.format(PYTHONPATH=python_path)
logger.debug("command: %s", cmd)
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:52
@@ -49,7 +49,7 @@
logger.debug("update_env=%s", pprint_str(update_env))
- cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
+ cmd: str = None
cmd = cmd.format(PYTHONPATH=python_path)
logger.debug("command: %s", cmd)
|
||
| ▸ | 53 |
cmd = cmd.format(PYTHONPATH=python_path) |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:53
@@ -50,7 +50,7 @@
logger.debug("update_env=%s", pprint_str(update_env))
cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
- cmd = cmd.format(PYTHONPATH=python_path)
+ cmd = None
logger.debug("command: %s", cmd)
try:
|
||
| ▸ | 54 |
logger.debug("command: %s", cmd)
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:54
@@ -51,7 +51,7 @@
cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
cmd = cmd.format(PYTHONPATH=python_path)
- logger.debug("command: %s", cmd)
+ logger.debug('XXcommand: %sXX', cmd)
try:
result = subprocess.run(
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:54
@@ -51,7 +51,7 @@
cmd: str = config.runner_opts.get("command_line", "pytest -x --assert=plain -o pythonpath='{PYTHONPATH}'")
cmd = cmd.format(PYTHONPATH=python_path)
- logger.debug("command: %s", cmd)
+ None
try:
result = subprocess.run(
|
||
| 55 | ||
| 56 |
try: |
|
| ▸ | 57 |
result = subprocess.run( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:57
@@ -54,14 +54,7 @@
logger.debug("command: %s", cmd)
try:
- result = subprocess.run(
- shlex.split(cmd), # noqa: S603
- cwd=run_cwd,
- env=run_env,
- capture_output=True,
- check=False,
- timeout=timeout,
- )
+ result = None
except TimeoutExpired as te:
return MutantTrialResult(
found=False,
|
||
| 58 |
shlex.split(cmd), # noqa: S603 |
|
| 59 |
cwd=run_cwd, |
|
| 60 |
env=run_env, |
|
| ▸ | 61 |
capture_output=True, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:61
@@ -58,7 +58,7 @@
shlex.split(cmd), # noqa: S603
cwd=run_cwd,
env=run_env,
- capture_output=True,
+ capture_output=False,
check=False,
timeout=timeout,
)
|
||
| ▸ | 62 |
check=False, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:62
@@ -59,7 +59,7 @@
cwd=run_cwd,
env=run_env,
capture_output=True,
- check=False,
+ check=True,
timeout=timeout,
)
except TimeoutExpired as te:
|
||
| 63 |
timeout=timeout, |
|
| 64 |
) |
|
| 65 |
except TimeoutExpired as te: |
|
| ▸ | 66 |
return MutantTrialResult( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:66
@@ -63,11 +63,7 @@
timeout=timeout,
)
except TimeoutExpired as te:
- return MutantTrialResult(
- found=False,
- reason_code=MutantTrialResult.RC_TIMEOUT,
- reason_desc=f"TimeoutExpired {te}",
- )
+ return None
if result.returncode == 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:66
@@ -63,11 +63,7 @@
timeout=timeout,
)
except TimeoutExpired as te:
- return MutantTrialResult(
- found=False,
- reason_code=MutantTrialResult.RC_TIMEOUT,
- reason_desc=f"TimeoutExpired {te}",
- )
+ return None
if result.returncode == 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
|
||
| ▸ | 67 |
found=False, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:67
@@ -64,7 +64,7 @@
)
except TimeoutExpired as te:
return MutantTrialResult(
- found=False,
+ found=True,
reason_code=MutantTrialResult.RC_TIMEOUT,
reason_desc=f"TimeoutExpired {te}",
)
|
||
| 68 |
reason_code=MutantTrialResult.RC_TIMEOUT, |
|
| ▸ | 69 |
reason_desc=f"TimeoutExpired {te}",
|
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:69
@@ -66,7 +66,7 @@
return MutantTrialResult(
found=False,
reason_code=MutantTrialResult.RC_TIMEOUT,
- reason_desc=f"TimeoutExpired {te}",
+ reason_desc=f"'XXTimeoutExpired XX'{te}",
)
if result.returncode == 1:
|
||
| 70 |
) |
|
| 71 | ||
| ▸ | 72 |
if result.returncode == 1: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:72
@@ -69,7 +69,7 @@
reason_desc=f"TimeoutExpired {te}",
)
- if result.returncode == 1:
+ if result.returncode != 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
if result.returncode == 0:
return MutantTrialResult(
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:72
@@ -69,7 +69,7 @@
reason_desc=f"TimeoutExpired {te}",
)
- if result.returncode == 1:
+ if result.returncode == 2:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
if result.returncode == 0:
return MutantTrialResult(
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:72
@@ -69,7 +69,7 @@
reason_desc=f"TimeoutExpired {te}",
)
- if result.returncode == 1:
+ if result.returncode == 0:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
if result.returncode == 0:
return MutantTrialResult(
|
||
| ▸ | 73 |
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND) |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:73
@@ -70,7 +70,7 @@
)
if result.returncode == 1:
- return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
+ return MutantTrialResult(found=False, reason_code=MutantTrialResult.RC_FOUND)
if result.returncode == 0:
return MutantTrialResult(
found=False,
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:73
@@ -70,7 +70,7 @@
)
if result.returncode == 1:
- return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
+ return None
if result.returncode == 0:
return MutantTrialResult(
found=False,
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:73
@@ -70,7 +70,7 @@
)
if result.returncode == 1:
- return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
+ return None
if result.returncode == 0:
return MutantTrialResult(
found=False,
|
||
| ▸ | 74 |
if result.returncode == 0: |
|
Status: Mutant Found Mutator Name: Compare Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:74
@@ -71,7 +71,7 @@
if result.returncode == 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
- if result.returncode == 0:
+ if result.returncode != 0:
return MutantTrialResult(
found=False,
reason_code=MutantTrialResult.RC_NOT_FOUND,
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:74
@@ -71,7 +71,7 @@
if result.returncode == 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
- if result.returncode == 0:
+ if result.returncode == 1:
return MutantTrialResult(
found=False,
reason_code=MutantTrialResult.RC_NOT_FOUND,
Status: Mutant Found Mutator Name: Number Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:74
@@ -71,7 +71,7 @@
if result.returncode == 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
- if result.returncode == 0:
+ if result.returncode == -1:
return MutantTrialResult(
found=False,
reason_code=MutantTrialResult.RC_NOT_FOUND,
|
||
| ▸ | 75 |
return MutantTrialResult( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:75
@@ -72,10 +72,7 @@
if result.returncode == 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
if result.returncode == 0:
- return MutantTrialResult(
- found=False,
- reason_code=MutantTrialResult.RC_NOT_FOUND,
- )
+ return None
return MutantTrialResult(
found=True,
reason_code=MutantTrialResult.RC_OTHER,
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:75
@@ -72,10 +72,7 @@
if result.returncode == 1:
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
if result.returncode == 0:
- return MutantTrialResult(
- found=False,
- reason_code=MutantTrialResult.RC_NOT_FOUND,
- )
+ return None
return MutantTrialResult(
found=True,
reason_code=MutantTrialResult.RC_OTHER,
|
||
| ▸ | 76 |
found=False, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:76
@@ -73,7 +73,7 @@
return MutantTrialResult(found=True, reason_code=MutantTrialResult.RC_FOUND)
if result.returncode == 0:
return MutantTrialResult(
- found=False,
+ found=True,
reason_code=MutantTrialResult.RC_NOT_FOUND,
)
return MutantTrialResult(
|
||
| 77 |
reason_code=MutantTrialResult.RC_NOT_FOUND, |
|
| 78 |
) |
|
| ▸ | 79 |
return MutantTrialResult( |
|
Status: Mutant Found Mutator Name: FuncCall Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:79
@@ -76,10 +76,4 @@
found=False,
reason_code=MutantTrialResult.RC_NOT_FOUND,
)
- return MutantTrialResult(
- found=True,
- reason_code=MutantTrialResult.RC_OTHER,
- reason_desc=result.stdout.decode("utf-8", errors="replace") # nomut: String
- + "\n"
- + result.stderr.decode("utf-8", errors="replace"), # nomut: String
- )
+ return None
Status: Mutant Found Mutator Name: Return Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:79
@@ -76,10 +76,4 @@
found=False,
reason_code=MutantTrialResult.RC_NOT_FOUND,
)
- return MutantTrialResult(
- found=True,
- reason_code=MutantTrialResult.RC_OTHER,
- reason_desc=result.stdout.decode("utf-8", errors="replace") # nomut: String
- + "\n"
- + result.stderr.decode("utf-8", errors="replace"), # nomut: String
- )
+ return None
|
||
| ▸ | 80 |
found=True, |
|
Status: Mutant Found Mutator Name: Keyword Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:80
@@ -77,7 +77,7 @@
reason_code=MutantTrialResult.RC_NOT_FOUND,
)
return MutantTrialResult(
- found=True,
+ found=False,
reason_code=MutantTrialResult.RC_OTHER,
reason_desc=result.stdout.decode("utf-8", errors="replace") # nomut: String
+ "\n"
|
||
| 81 |
reason_code=MutantTrialResult.RC_OTHER, |
|
| ▸ | 82 |
reason_desc=result.stdout.decode("utf-8", errors="replace") # nomut: String
|
|
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:82
@@ -79,7 +79,5 @@
return MutantTrialResult(
found=True,
reason_code=MutantTrialResult.RC_OTHER,
- reason_desc=result.stdout.decode("utf-8", errors="replace") # nomut: String
- + "\n"
- + result.stderr.decode("utf-8", errors="replace"), # nomut: String
+ reason_desc=result.stdout.decode('utf-8', errors='replace') + '\n' - result.stderr.decode('utf-8', errors='replace'), # nomut: String
)
Status: Mutant Found Mutator Name: BinOp Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:82
@@ -79,7 +79,5 @@
return MutantTrialResult(
found=True,
reason_code=MutantTrialResult.RC_OTHER,
- reason_desc=result.stdout.decode("utf-8", errors="replace") # nomut: String
- + "\n"
- + result.stderr.decode("utf-8", errors="replace"), # nomut: String
+ reason_desc=(result.stdout.decode('utf-8', errors='replace') + '\n') * result.stderr.decode('utf-8', errors='replace'), # nomut: String
)
|
||
| ▸ | 83 |
+ "\n" |
|
Status: Mutant Found Mutator Name: String Unified Diff: --- src\poodle\runners\command_line.py
+++ [Mutant] src\poodle\runners\command_line.py:83
@@ -80,6 +80,6 @@
found=True,
reason_code=MutantTrialResult.RC_OTHER,
reason_desc=result.stdout.decode("utf-8", errors="replace") # nomut: String
- + "\n"
+ + 'XX\nXX'
+ result.stderr.decode("utf-8", errors="replace"), # nomut: String
)
|
||
| 84 |
+ result.stderr.decode("utf-8", errors="replace"), # nomut: String
|
|
| 85 |
) |