forked from Mirror/pmbootstrap
I've replaced all instances in the code of `os.path.abspath` with `os.path.realpath`, as this does the same as `abspath` plus resolving symlinks. See also: https://stackoverflow.com/a/40311142
This commit is contained in:
parent
2f8d589ed6
commit
ff9f2d620f
19 changed files with 24 additions and 24 deletions
|
@ -24,7 +24,7 @@ def test_chroot_interactive_shell():
|
|||
"""
|
||||
Open a shell with 'pmbootstrap chroot' and pass 'echo hello_world\n' as stdin.
|
||||
"""
|
||||
pmb_src = os.path.abspath(os.path.join(os.path.dirname(__file__) + "/.."))
|
||||
pmb_src = os.path.realpath(os.path.join(os.path.dirname(__file__) + "/.."))
|
||||
os.chdir(pmb_src)
|
||||
ret = subprocess.check_output(["./pmbootstrap.py", "-q", "chroot"], timeout=300,
|
||||
input="echo hello_world\n", universal_newlines=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue