* [PATCH] tests/Makefile.include: export PYTHON for check-block.sh
@ 2021-01-29 5:13 Vladimir Sementsov-Ogievskiy
2021-01-29 8:25 ` Thomas Huth
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2021-01-29 5:13 UTC (permalink / raw)
To: qemu-block; +Cc: kwolf, vsementsov, qemu-devel, mreitz, pbonzini
check-block.sh called by make check-block rely on PYTHON variable being
set.
Fixes: f203080bbd9f9e5b31041b1f2afcd6040c5aaec5
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
Hi! As Peter reported, build fails on platforms where python3 is not
/usr/bin/python3.. This patch should help. At least it works for me if
I move /usr/bin/python3 to another location and configure it with
--python=. And doesn't work without the patch.
Don't know how the thing seemed to work for me before :\
tests/Makefile.include | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/Makefile.include b/tests/Makefile.include
index 3a0524ce74..ceaf3f0d6e 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -138,6 +138,7 @@ check:
ifeq ($(CONFIG_TOOLS)$(CONFIG_POSIX),yy)
QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
check: check-block
+export PYTHON
check-block: $(SRC_PATH)/tests/check-block.sh qemu-img$(EXESUF) \
qemu-io$(EXESUF) qemu-nbd$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) \
$(filter qemu-system-%, $(ninja-targets))
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/Makefile.include: export PYTHON for check-block.sh
2021-01-29 5:13 [PATCH] tests/Makefile.include: export PYTHON for check-block.sh Vladimir Sementsov-Ogievskiy
@ 2021-01-29 8:25 ` Thomas Huth
2021-01-29 8:54 ` Vladimir Sementsov-Ogievskiy
2021-01-29 9:45 ` Thomas Huth
2021-01-29 11:32 ` Kevin Wolf
2 siblings, 1 reply; 5+ messages in thread
From: Thomas Huth @ 2021-01-29 8:25 UTC (permalink / raw)
To: Vladimir Sementsov-Ogievskiy, qemu-block
Cc: kwolf, pbonzini, qemu-devel, mreitz
On 29/01/2021 06.13, Vladimir Sementsov-Ogievskiy wrote:
> check-block.sh called by make check-block rely on PYTHON variable being
> set.
>
> Fixes: f203080bbd9f9e5b31041b1f2afcd6040c5aaec5
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
>
> Hi! As Peter reported, build fails on platforms where python3 is not
> /usr/bin/python3.. This patch should help. At least it works for me if
> I move /usr/bin/python3 to another location and configure it with
> --python=. And doesn't work without the patch.
> Don't know how the thing seemed to work for me before :\
>
> tests/Makefile.include | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index 3a0524ce74..ceaf3f0d6e 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -138,6 +138,7 @@ check:
> ifeq ($(CONFIG_TOOLS)$(CONFIG_POSIX),yy)
> QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
> check: check-block
> +export PYTHON
> check-block: $(SRC_PATH)/tests/check-block.sh qemu-img$(EXESUF) \
> qemu-io$(EXESUF) qemu-nbd$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) \
> $(filter qemu-system-%, $(ninja-targets))
>
That makes the iotests starting again when running the NetBSD tests ("make
vm-build-netbsd"), but then some of the iotests are failing now, e.g.:
--- /home/qemu/qemu-test.N2qe9i/src/tests/qemu-iotests/040.out
+++ 040.out.bad
@@ -1,5 +1 @@
-.................................................................
-----------------------------------------------------------------------
-Ran 65 tests
-
-OK
+env: python3: No such file or directory
... so looks like this was not the complete fix yet?
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/Makefile.include: export PYTHON for check-block.sh
2021-01-29 8:25 ` Thomas Huth
@ 2021-01-29 8:54 ` Vladimir Sementsov-Ogievskiy
0 siblings, 0 replies; 5+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2021-01-29 8:54 UTC (permalink / raw)
To: Thomas Huth, qemu-block; +Cc: kwolf, pbonzini, qemu-devel, mreitz
29.01.2021 11:25, Thomas Huth wrote:
> On 29/01/2021 06.13, Vladimir Sementsov-Ogievskiy wrote:
>> check-block.sh called by make check-block rely on PYTHON variable being
>> set.
>>
>> Fixes: f203080bbd9f9e5b31041b1f2afcd6040c5aaec5
>> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
>> ---
>>
>> Hi! As Peter reported, build fails on platforms where python3 is not
>> /usr/bin/python3.. This patch should help. At least it works for me if
>> I move /usr/bin/python3 to another location and configure it with
>> --python=. And doesn't work without the patch.
>> Don't know how the thing seemed to work for me before :\
>>
>> tests/Makefile.include | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>> index 3a0524ce74..ceaf3f0d6e 100644
>> --- a/tests/Makefile.include
>> +++ b/tests/Makefile.include
>> @@ -138,6 +138,7 @@ check:
>> ifeq ($(CONFIG_TOOLS)$(CONFIG_POSIX),yy)
>> QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
>> check: check-block
>> +export PYTHON
>> check-block: $(SRC_PATH)/tests/check-block.sh qemu-img$(EXESUF) \
>> qemu-io$(EXESUF) qemu-nbd$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) \
>> $(filter qemu-system-%, $(ninja-targets))
>>
>
> That makes the iotests starting again when running the NetBSD tests ("make vm-build-netbsd"), but then some of the iotests are failing now, e.g.:
>
> --- /home/qemu/qemu-test.N2qe9i/src/tests/qemu-iotests/040.out
> +++ 040.out.bad
> @@ -1,5 +1 @@
> -.................................................................
> -----------------------------------------------------------------------
> -Ran 65 tests
> -
> -OK
> +env: python3: No such file or directory
>
> ... so looks like this was not the complete fix yet?
>
> Thomas
>
Right, thanks.
Aha, we also need:
diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunner.py
index a581be6a29..24b3fba115 100644
--- a/tests/qemu-iotests/testrunner.py
+++ b/tests/qemu-iotests/testrunner.py
@@ -248,7 +248,7 @@ class TestRunner(ContextManager['TestRunner']):
with f_test.open(encoding="utf-8") as f:
try:
- if f.readline() == '#!/usr/bin/env python3':
+ if f.readline().rstrip() == '#!/usr/bin/env python3':
args.insert(0, self.env.python)
except UnicodeDecodeError: # binary test? for future.
pass
will send as a separate patch.
--
Best regards,
Vladimir
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/Makefile.include: export PYTHON for check-block.sh
2021-01-29 5:13 [PATCH] tests/Makefile.include: export PYTHON for check-block.sh Vladimir Sementsov-Ogievskiy
2021-01-29 8:25 ` Thomas Huth
@ 2021-01-29 9:45 ` Thomas Huth
2021-01-29 11:32 ` Kevin Wolf
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-01-29 9:45 UTC (permalink / raw)
To: Vladimir Sementsov-Ogievskiy, qemu-block
Cc: kwolf, pbonzini, qemu-devel, mreitz
On 29/01/2021 06.13, Vladimir Sementsov-Ogievskiy wrote:
> check-block.sh called by make check-block rely on PYTHON variable being
> set.
>
> Fixes: f203080bbd9f9e5b31041b1f2afcd6040c5aaec5
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
>
> Hi! As Peter reported, build fails on platforms where python3 is not
> /usr/bin/python3.. This patch should help. At least it works for me if
> I move /usr/bin/python3 to another location and configure it with
> --python=. And doesn't work without the patch.
> Don't know how the thing seemed to work for me before :\
>
> tests/Makefile.include | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index 3a0524ce74..ceaf3f0d6e 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -138,6 +138,7 @@ check:
> ifeq ($(CONFIG_TOOLS)$(CONFIG_POSIX),yy)
> QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
> check: check-block
> +export PYTHON
> check-block: $(SRC_PATH)/tests/check-block.sh qemu-img$(EXESUF) \
> qemu-io$(EXESUF) qemu-nbd$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) \
> $(filter qemu-system-%, $(ninja-targets))
>
Tested-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/Makefile.include: export PYTHON for check-block.sh
2021-01-29 5:13 [PATCH] tests/Makefile.include: export PYTHON for check-block.sh Vladimir Sementsov-Ogievskiy
2021-01-29 8:25 ` Thomas Huth
2021-01-29 9:45 ` Thomas Huth
@ 2021-01-29 11:32 ` Kevin Wolf
2 siblings, 0 replies; 5+ messages in thread
From: Kevin Wolf @ 2021-01-29 11:32 UTC (permalink / raw)
To: Vladimir Sementsov-Ogievskiy; +Cc: pbonzini, qemu-devel, qemu-block, mreitz
Am 29.01.2021 um 06:13 hat Vladimir Sementsov-Ogievskiy geschrieben:
> check-block.sh called by make check-block rely on PYTHON variable being
> set.
>
> Fixes: f203080bbd9f9e5b31041b1f2afcd6040c5aaec5
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thanks, applied to the block branch.
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-01-29 11:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-29 5:13 [PATCH] tests/Makefile.include: export PYTHON for check-block.sh Vladimir Sementsov-Ogievskiy
2021-01-29 8:25 ` Thomas Huth
2021-01-29 8:54 ` Vladimir Sementsov-Ogievskiy
2021-01-29 9:45 ` Thomas Huth
2021-01-29 11:32 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).