public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test
@ 2023-01-06  0:20 alexey+gentoo
  2023-01-06 14:41 ` Michał Górny
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: alexey+gentoo @ 2023-01-06  0:20 UTC (permalink / raw
  To: gentoo-dev; +Cc: Alexey Sokolov

From: Alexey Sokolov <alexey+gentoo@asokolov.org>

Rationale:

src_test() {
  virtx distutils-r1_src_test
}

If the test fails with "die", Xvfb keeps running forever; but it's
cleaned up correctly with die -n

Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
---
 eclass/distutils-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 371d52bcb7e..8896768d3ce 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: distutils-r1.eclass
@@ -1559,7 +1559,7 @@ distutils-r1_python_test() {
 	esac
 
 	if [[ ${?} -ne 0 ]]; then
-		die "Tests failed with ${EPYTHON}"
+		die -n "Tests failed with ${EPYTHON}"
 	fi
 }
 
-- 
2.38.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test
  2023-01-06  0:20 [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test alexey+gentoo
@ 2023-01-06 14:41 ` Michał Górny
  2023-01-06 15:27 ` Toralf Förster
  2023-01-07 14:57 ` Michał Górny
  2 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2023-01-06 14:41 UTC (permalink / raw
  To: gentoo-dev; +Cc: Alexey Sokolov

On Fri, 2023-01-06 at 00:20 +0000, alexey+gentoo@asokolov.org wrote:
> From: Alexey Sokolov <alexey+gentoo@asokolov.org>
> 
> Rationale:
> 
> src_test() {
>   virtx distutils-r1_src_test
> }
> 
> If the test fails with "die", Xvfb keeps running forever; but it's
> cleaned up correctly with die -n
> 
> Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
> ---
>  eclass/distutils-r1.eclass | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
> index 371d52bcb7e..8896768d3ce 100644
> --- a/eclass/distutils-r1.eclass
> +++ b/eclass/distutils-r1.eclass
> @@ -1,4 +1,4 @@
> -# Copyright 1999-2022 Gentoo Authors
> +# Copyright 1999-2023 Gentoo Authors
>  # Distributed under the terms of the GNU General Public License v2
>  
>  # @ECLASS: distutils-r1.eclass
> @@ -1559,7 +1559,7 @@ distutils-r1_python_test() {
>  	esac
>  
>  	if [[ ${?} -ne 0 ]]; then
> -		die "Tests failed with ${EPYTHON}"
> +		die -n "Tests failed with ${EPYTHON}"
>  	fi
>  }
>  

LGTM.  I need to think if we have any changes pending.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test
  2023-01-06  0:20 [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test alexey+gentoo
  2023-01-06 14:41 ` Michał Górny
@ 2023-01-06 15:27 ` Toralf Förster
  2023-01-06 16:31   ` Michał Górny
  2023-01-07 14:57 ` Michał Górny
  2 siblings, 1 reply; 6+ messages in thread
From: Toralf Förster @ 2023-01-06 15:27 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 356 bytes --]

On 1/6/23 01:20, alexey+gentoo@asokolov.org wrote:
> If the test fails with "die", Xvfb keeps running forever; but it's
> cleaned up correctly with die -n

At my tinderbox I do experience sometimes a running dirmngr process 
solely running since days. /me wonders if that's the result of a similar 
scenario?

-- 
Toralf
PGP 23217DA7 9B888F45


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test
  2023-01-06 15:27 ` Toralf Förster
@ 2023-01-06 16:31   ` Michał Górny
  2023-01-07 19:58     ` Sam James
  0 siblings, 1 reply; 6+ messages in thread
From: Michał Górny @ 2023-01-06 16:31 UTC (permalink / raw
  To: gentoo-dev

On Fri, 2023-01-06 at 16:27 +0100, Toralf Förster wrote:
> On 1/6/23 01:20, alexey+gentoo@asokolov.org wrote:
> > If the test fails with "die", Xvfb keeps running forever; but it's
> > cleaned up correctly with die -n
> 
> At my tinderbox I do experience sometimes a running dirmngr process 
> solely running since days. /me wonders if that's the result of a similar 
> scenario?
> 

Normally it shouldn't be happening since Portage uses PID namespace to
kill all leftover processes.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test
  2023-01-06  0:20 [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test alexey+gentoo
  2023-01-06 14:41 ` Michał Górny
  2023-01-06 15:27 ` Toralf Förster
@ 2023-01-07 14:57 ` Michał Górny
  2 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2023-01-07 14:57 UTC (permalink / raw
  To: gentoo-dev; +Cc: Alexey Sokolov

On Fri, 2023-01-06 at 00:20 +0000, alexey+gentoo@asokolov.org wrote:
> From: Alexey Sokolov <alexey+gentoo@asokolov.org>
> 
> Rationale:
> 
> src_test() {
>   virtx distutils-r1_src_test
> }
> 
> If the test fails with "die", Xvfb keeps running forever; but it's
> cleaned up correctly with die -n
> 
> Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
> ---
>  eclass/distutils-r1.eclass | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
> index 371d52bcb7e..8896768d3ce 100644
> --- a/eclass/distutils-r1.eclass
> +++ b/eclass/distutils-r1.eclass
> @@ -1,4 +1,4 @@
> -# Copyright 1999-2022 Gentoo Authors
> +# Copyright 1999-2023 Gentoo Authors
>  # Distributed under the terms of the GNU General Public License v2
>  
>  # @ECLASS: distutils-r1.eclass
> @@ -1559,7 +1559,7 @@ distutils-r1_python_test() {
>  	esac
>  
>  	if [[ ${?} -ne 0 ]]; then
> -		die "Tests failed with ${EPYTHON}"
> +		die -n "Tests failed with ${EPYTHON}"
>  	fi
>  }
>  

Merged now.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test
  2023-01-06 16:31   ` Michał Górny
@ 2023-01-07 19:58     ` Sam James
  0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2023-01-07 19:58 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]



> On 6 Jan 2023, at 16:31, Michał Górny <mgorny@gentoo.org> wrote:
> 
> On Fri, 2023-01-06 at 16:27 +0100, Toralf Förster wrote:
>> On 1/6/23 01:20, alexey+gentoo@asokolov.org wrote:
>>> If the test fails with "die", Xvfb keeps running forever; but it's
>>> cleaned up correctly with die -n
>> 
>> At my tinderbox I do experience sometimes a running dirmngr process
>> solely running since days. /me wonders if that's the result of a similar
>> scenario?
>> 
> 
> Normally it shouldn't be happening since Portage uses PID namespace to
> kill all leftover processes.
> 

Yeah, this is mainly an issue on e.g. prefix or containers.

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 358 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-07 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-06  0:20 [gentoo-dev] [PATCH v2] distutils-r1.eclass: support nonfatal in test alexey+gentoo
2023-01-06 14:41 ` Michał Górny
2023-01-06 15:27 ` Toralf Förster
2023-01-06 16:31   ` Michał Górny
2023-01-07 19:58     ` Sam James
2023-01-07 14:57 ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox