remove forked argument in front of tests - does not play nicely with subprocvecenv in spawned processes; analog of forked in ddpg/test_smoke
This commit is contained in:
@@ -11,4 +11,4 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- flake8 . --show-source --statistics
|
- flake8 . --show-source --statistics
|
||||||
- docker run baselines-test pytest -v --forked .
|
- docker run baselines-test pytest -v .
|
||||||
|
@@ -1,7 +1,10 @@
|
|||||||
from baselines.run import main as M
|
from multiprocessing import Process
|
||||||
|
import baselines.run
|
||||||
|
|
||||||
def _run(argstr):
|
def _run(argstr):
|
||||||
M(('--alg=ddpg --env=Pendulum-v0 --num_timesteps=0 ' + argstr).split(' '))
|
p = Process(target=baselines.run.main, args=('--alg=ddpg --env=Pendulum-v0 --num_timesteps=0 ' + argstr).split(' '))
|
||||||
|
p.start()
|
||||||
|
p.join()
|
||||||
|
|
||||||
def test_popart():
|
def test_popart():
|
||||||
_run('--normalize_returns=True --popart=True')
|
_run('--normalize_returns=True --popart=True')
|
||||||
|
Reference in New Issue
Block a user