[diffoscope] 01/01: Don't assume that /sbin/init exists; locate any /sbin binary manually and then test for that. This should prevent FTBFS on travis-ci.org.
Chris Lamb
chris at chris-lamb.co.uk
Tue Mar 28 20:35:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch experimental
in repository diffoscope.
commit 140aefd182c28bab12b9ec6027248a35342e0423
Author: Chris Lamb <lamby at debian.org>
Date: Tue Mar 28 21:35:03 2017 +0100
Don't assume that /sbin/init exists; locate any /sbin binary manually and then test for that. This should prevent FTBFS on travis-ci.org.
Signed-off-by: Chris Lamb <lamby at debian.org>
---
tests/test_tools.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_tools.py b/tests/test_tools.py
index 6210ee0..47b1bc8 100644
--- a/tests/test_tools.py
+++ b/tests/test_tools.py
@@ -17,13 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
+import os
import pytest
def test_sbin_added_to_path():
from diffoscope.tools import tool_required
- @tool_required('init')
+ @tool_required(os.listdir('/sbin')[0])
def fn():
pass
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list