Skip to content

Commit

Permalink
Cleanup temporary overlay from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fperez committed Feb 10, 2017
1 parent 6c25b45 commit e68c54e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edev.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,19 @@ def test_normal():
sh = functools.partial(subprocess.run, shell=True, check=True)

ename = '__tmp_edev_env__'
edev = EDEV_BASE/ename
sh(f"conda create -n {ename} --yes")
try:
assert main([ename]) == 0
assert (EDEV_BASE/ename).is_dir()
assert edev.is_dir()

for script, cdir in [(EDEV_ON, 'activate.d'),
(EDEV_OFF, 'deactivate.d')]:
src = CONDA_BASE/ename/'etc/conda'/cdir/script
assert src.is_symlink()
assert src.samefile(script)
finally:
edev.rmdir()
sh(f"conda remove -n {ename} --all --yes")


Expand Down

0 comments on commit e68c54e

Please sign in to comment.