From 5bb75e7c9627f51fd72bdb4eb46c47a0ebd44001 Mon Sep 17 00:00:00 2001 From: SiHuaN Date: Fri, 7 Jul 2023 19:07:25 +0800 Subject: [PATCH] fix build error on riscv64 (cherry picked from commit f8fb51af607ce30ac40900f4b493d388ed946462) --- ...dex-increase-http-server-startup-wait-time.patch | 13 +++++++++++++ python-rosdistro.spec | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 0-test-index-increase-http-server-startup-wait-time.patch diff --git a/0-test-index-increase-http-server-startup-wait-time.patch b/0-test-index-increase-http-server-startup-wait-time.patch new file mode 100644 index 0000000..6cc36d1 --- /dev/null +++ b/0-test-index-increase-http-server-startup-wait-time.patch @@ -0,0 +1,13 @@ +diff --git a/test/test_index.py b/test/test_index.py +index 1208f8a..e61741e 100644 +--- a/test/test_index.py ++++ b/test/test_index.py +@@ -75,7 +75,7 @@ def test_get_index_from_http_with_query_parameters(): + else: + proc = subprocess.Popen([sys.executable, '-m', 'http.server', '9876'], + cwd=FILES_DIR) +- time.sleep(0.5) ++ time.sleep(2) + try: + i = get_index(url) + assert len(i.distributions.keys()) == 1 diff --git a/python-rosdistro.spec b/python-rosdistro.spec index 7800ebf..8c82539 100644 --- a/python-rosdistro.spec +++ b/python-rosdistro.spec @@ -9,6 +9,8 @@ License: BSD and MIT URL: http://www.ros.org/wiki/rosdistro Source0: %{version}.tar.gz +Patch0: 0-test-index-increase-http-server-startup-wait-time.patch + BuildArch: noarch %description