Folder exists #149
10 fail in 15s
Annotations
Check warning on line 0 in tests.CreateHDF5.test_CreateHDF5
github-actions / Unit Test Results
test_CreateHDF5 (tests.CreateHDF5.test_CreateHDF5) failed
junit/test-results.xml
Raw output
def test_CreateHDF5():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# Remove anything from previous tests
if (path / "BP_CreateHDF5").exists():
shutil.rmtree(path / "BP_CreateHDF5")
if (path / ".BP_CreateHDF5").exists():
os.remove(path / ".BP_CreateHDF5")
if (path / ".BP_CreateHDF5_BPL").exists():
os.remove(path / ".BP_CreateHDF5_BPL")
if (path / "BP_CreateHDF5.bpa").exists():
os.remove(path / "BP_CreateHDF5.bpa")
if (path / "BP_CreateHDF5.md5").exists():
os.remove(path / "BP_CreateHDF5.md5")
# Run vspace
print("Running vspace.")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running MultiPlanet.")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/CreateHDF5/test_CreateHDF5.py:42:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/CreateHDF5'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f22253c8438>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.ExtractArchive.test_ExtractArchive
github-actions / Unit Test Results
test_ExtractArchive (tests.ExtractArchive.test_ExtractArchive) failed
junit/test-results.xml
Raw output
def test_ExtractArchive():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# Remove anything from previous tests
if (path / "BP_Extract").exists():
shutil.rmtree(path / "BP_Extract")
if (path / ".BP_Extract").exists():
os.remove(path / ".BP_Extract")
if (path / ".BP_Extract_BPL").exists():
os.remove(path / ".BP_Extract_BPL")
if (path / "BP_Extract.bpa").exists():
os.remove(path / "BP_Extract.bpa")
if (path / "BP_Extract.md5").exists():
os.remove(path / "BP_Extract.md5")
# Run vspace
print("Running vspace.")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running MultiPlanet.")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/ExtractArchive/test_ExtractArchive.py:42:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/ExtractArchive'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f22253e1cf8>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.ExtractFilterArchive.test_ExtractFilterArchive
github-actions / Unit Test Results
test_ExtractFilterArchive (tests.ExtractFilterArchive.test_ExtractFilterArchive) failed
junit/test-results.xml
Raw output
def test_ExtractFilterArchive():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# Remove any old test files/dirs
if (path / "BP_Extract").exists():
shutil.rmtree(path / "BP_Extract")
if (path / ".BP_Extract").exists():
os.remove(path / ".BP_Extract")
if (path / ".BP_Extract_BPL").exists():
os.remove(path / ".BP_Extract_BPL")
if (path / "BP_Extract.bpa").exists():
os.remove(path / "BP_Extract.bpa")
if (path / "Test.bpf").exists():
os.remove(path / "Test.bpf")
if (path / "BP_Extract.md5").exists():
os.remove(path / "BP_Extract.md5")
# Run vspace
print("Running vspace.")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running MultiPlanet.")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/ExtractFilterArchive/test_ExtractFilterArchive.py:44:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/ExtractFilterArchive'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f22253dda20>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.ExtractFilterRaw.test_ExtractFilterRaw
github-actions / Unit Test Results
test_ExtractFilterRaw (tests.ExtractFilterRaw.test_ExtractFilterRaw) failed
junit/test-results.xml
Raw output
def test_ExtractFilterRaw():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# If present, remove files from previous run
if (path / "BP_Extract").exists():
shutil.rmtree(path / "BP_Extract")
if (path / ".BP_Extract").exists():
os.remove(path / ".BP_Extract")
if (path / "Test.bpf").exists():
os.remove(path / "Test.bpf")
# Run vspace
print("Running vspace")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multiplanet
print("Running multiplanet")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/ExtractFilterRaw/test_ExtractFilterRaw.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/ExtractFilterRaw'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f22253cebe0>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.MD5CheckSum.test_MD5CheckSum
github-actions / Unit Test Results
test_MD5CheckSum (tests.MD5CheckSum.test_MD5CheckSum) failed
junit/test-results.xml
Raw output
def test_MD5CheckSum():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# If present, remove files from previous run
if (path / "BP_Extract").exists():
shutil.rmtree(path / "BP_Extract")
if (path / "BP_Extract.bpa").exists():
os.remove(path / "BP_Extract.bpa")
if (path / ".BP_Extract").exists():
os.remove(path / ".BP_Extract")
if (path / ".BP_Extract_BPL").exists():
os.remove(path / ".BP_Extract_BPL")
if (path / "BP_Extract.md5").exists():
os.remove(path / "BP_Extract.md5")
# Run vspace
print("Running vspace")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running multiplanet")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/MD5CheckSum/test_MD5CheckSum.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/MD5CheckSum'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f222566bcf8>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.SingleSim.test_singlesim
github-actions / Unit Test Results
test_SingleSim (tests.SingleSim.test_singlesim) failed
junit/test-results.xml
Raw output
def test_SingleSim():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# If present, remove files from previous run
if (path / "BP_Extract").exists():
shutil.rmtree(path / "BP_Extract")
if (path / ".BP_Extract").exists():
os.remove(path / ".BP_Extract")
if (path / "Test.bpf").exists():
os.remove(path / "Test.bpf")
# Run vspace
print("Running vspace")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running multiplanet")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/SingleSim/test_singlesim.py:37:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/SingleSim'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f2225350c18>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.Stats.test_Stats
github-actions / Unit Test Results
test_Stats (tests.Stats.test_Stats) failed
junit/test-results.xml
Raw output
def test_Stats():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# up = os.path.normpath("../")
# if (up / "*.md5").exists:
# os.remove(path / "*.md5")
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# If present, remove files from previous run
if (path / "BP_Stats").exists():
shutil.rmtree(path / "BP_Stats")
if (path / ".BP_Stats").exists():
os.remove(path / ".BP_Stats")
if (path / ".BP_Stats_BPL").exists():
os.remove(path / ".BP_Stats_BPL")
if (path / "BP_Stats.bpa").exists():
os.remove(path / "BP_Stats.bpa")
if (path / "../BP_Stats.md5").exists():
os.remove(path / "../BP_Stats.md5")
if (path / "BP_Stats.md5").exists():
os.remove(path / "BP_Stats.md5")
# Run vspace
print("Running vspace")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running MultiPlanet")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/Stats/test_Stats.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/Stats'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f222539df60>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.Status.test_Status
github-actions / Unit Test Results
test_bpstatus (tests.Status.test_Status) failed
junit/test-results.xml
Raw output
def test_bpstatus():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
if (path / "BP_Status").exists():
shutil.rmtree(path / "BP_Status")
if (path / ".BP_Status").exists():
os.remove(path / ".BP_Status")
if (path / ".BP_Status_BPL").exists():
os.remove(path / ".BP_Status_BPL")
if (path / "BP_Status.bpa").exists():
os.remove(path / "BP_Status.bpa")
if (path / "../BP_Status.md5").exists():
os.remove(path / "../BP_Status.md5")
if (path / "BP_Status.md5").exists():
os.remove(path / "BP_Status.md5")
# Run vspace
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/Status/test_Status.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/Status'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f2225350978>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.UlyssesAggregated.test_UlyssesAggregated
github-actions / Unit Test Results
test_UlyssesAggregated (tests.UlyssesAggregated.test_UlyssesAggregated) failed
junit/test-results.xml
Raw output
def test_UlyssesAggregated():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# If present, remove files from previous run
if (path / "BP_Extract").exists():
shutil.rmtree(path / "BP_Extract")
if (path / ".BP_Extract").exists():
os.remove(path / ".BP_Extract")
if (path / "User.csv").exists():
os.remove(path / "User.csv")
# Run vspace
print("Running vspace")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running multiplanet")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/UlyssesAggregated/test_UlyssesAggregated.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/UlyssesAggregated'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f22253ddac8>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError
Check warning on line 0 in tests.UlyssesForward.test_UlyssesForward
github-actions / Unit Test Results
test_UlyssesForward (tests.UlyssesForward.test_UlyssesForward) failed
junit/test-results.xml
Raw output
def test_UlyssesForward():
# gets current path
path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
# gets the number of cores on the machine
cores = mp.cpu_count()
if cores == 1:
warnings.warn("There is only 1 core on the machine", stacklevel=3)
else:
# If present, remove files from previous run
if (path / "BP_Extract").exists():
shutil.rmtree(path / "BP_Extract")
if (path / ".BP_Extract").exists():
os.remove(path / ".BP_Extract")
if (path / "User.csv").exists():
os.remove(path / "User.csv")
# Run vspace
print("Running vspace")
sys.stdout.flush()
subprocess.check_output(["vspace", "vspace.in"], cwd=path)
# Run multi-planet
print("Running multiplanet")
sys.stdout.flush()
> subprocess.check_output(["multiplanet", "vspace.in"], cwd=path)
tests/UlyssesForward/test_UlyssesForward.py:37:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:356: in check_output
**kwargs).stdout
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, timeout = None, check = True
popenargs = (['multiplanet', 'vspace.in'],)
kwargs = {'cwd': PosixPath('/home/runner/work/bigplanet/bigplanet/tests/UlyssesForward'), 'stdout': -1}
process = <subprocess.Popen object at 0x7f22253c8080>, stdout = b''
stderr = None, retcode = 1
def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
The other arguments are the same as for the Popen constructor.
If universal_newlines=True is passed, the "input" argument must be a
string and stdout/stderr in the returned object will be strings rather than
bytes.
"""
if input is not None:
if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired:
process.kill()
stdout, stderr = process.communicate()
raise TimeoutExpired(process.args, timeout, output=stdout,
stderr=stderr)
except:
process.kill()
process.wait()
raise
retcode = process.poll()
if check and retcode:
raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
E subprocess.CalledProcessError: Command '['multiplanet', 'vspace.in']' returned non-zero exit status 1.
/usr/share/miniconda/envs/vplanet/lib/python3.6/subprocess.py:438: CalledProcessError