From 6127bc07137bfe03f38ecbebce7d3bfd0565b9b7 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Apr 22 2019 23:16:58 +0000 Subject: Workaround: OSError: [Errno 18] Invalid cross-device link The tests were hitting: OSError: [Errno 18] Invalid cross-device link: b'/tmp/...' -> b'/builddir/.local/share/Trash/files/...' In local mock or in Copr. It only happens in certain containerized environments. By setting TMPDIR inside the builddir, we workaround this problem. --- diff --git a/python-notebook.spec b/python-notebook.spec index 173e3b9..eb11d43 100644 --- a/python-notebook.spec +++ b/python-notebook.spec @@ -165,7 +165,11 @@ popd %check -LANG=C.utf-8 nosetests-3 -v --exclude-dir notebook/tests/selenium +# Workaround: OSError: [Errno 18] Invalid cross-device link: b'/tmp/...' -> b'/builddir/.local/share/Trash/files/...' +mkdir .tmp +export TMPDIR=$(pwd)/.tmp + +nosetests-3 -v --exclude-dir notebook/tests/selenium %files -n python3-%{pypi_name}