Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The tmp directory must be at the same device partition as the hyp3-isce2 code locate in order to make the tests pass #195

Open
cirrusasf opened this issue Feb 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cirrusasf
Copy link
Contributor

pytest tests/test_merge_tops_bursts.py fails. it creates the following error:

OSError: [Errno 18] Invalid cross-device link: '/tmp/pytest-of-jiangzhu/pytest-3/test_snaphu_unwrap0/merged/filt_topophase.unw' -> 'tmp.unw'

The problem is that the renameFile function in the maskUnwrap (isceobj.TopsProc.runIon import maskUnwrap) can not do cross-device link.

solution:
Before run the test, create tmp directory to be at the same device partition as the hyp3-isce2 codes locate, and point the TMPDIR environment variable to be the tmp.

For example,

mkdir /home/user/tmp
export TMPDIR=/home/user/tmp
pytest tests/test_merge_tops_bursts.py

successfully.

@cirrusasf cirrusasf added the bug Something isn't working label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant