Mailing List Archive

ocft updated (test tool of resource-agnets)
Medium: tools: ocft: update to version 0.44

Added "incremental" mode (ocft test -i) , cache results and
not repeatedly rerun those cases which succeeded.

Improved *ocft make*, the ocft will only make the updated test-case file.

The ocft test prints the actual case names instead of just case numbers.
Re: ocft updated (test tool of resource-agnets) [ In reply to ]
On Sun, Jan 20, 2013 at 09:23:05AM -0700, John Shi wrote:
> Medium: tools: ocft: update to version 0.44
>
> Added "incremental" mode (ocft test -i) , cache results and
> not repeatedly rerun those cases which succeeded.
>
> Improved *ocft make*, the ocft will only make the updated test-case file.
>
> The ocft test prints the actual case names instead of just case numbers.
>
>

> From efaeb8c675c8dfbbeb2e6c6068a281f2ce53bf22 Mon Sep 17 00:00:00 2001
> From: John Shi <jshi@suse.com>
> Date: Sun, 20 Jan 2013 23:35:00 +0800
> Subject: [PATCH] Medium: tools: ocft: update to version 0.44
>
> Added "incremental" mode (ocft test -i) , cache results and
> not repeatedly rerun those cases which succeeded.
>
> Improved *ocft make*, the ocft will only make the updated test-case file.
>
> The ocft test prints the actual case names instead of just case numbers.

There is nothing in the commit message about changed "kill" behaviour.

And I don't think I understand nor like that change.

You do:

> - setsid $aroot/$agent $cmd >/tmp/.ocft_runlog 2>&1 &
> + $aroot/$agent $cmd >/tmp/.ocft_runlog 2>&1 &
> pid=$!
>
> i=0
> @@ -111,9 +111,9 @@ agent_run()
> done
>
> if [ $i -ge $timeout ]; then
> - kill -SIGTERM -$pid >/dev/null 2>&1
> + kill -SIGTERM $pid >/dev/null 2>&1
> sleep 3
> - kill -SIGKILL -$pid >/dev/null 2>&1
> + kill -SIGKILL $pid >/dev/null 2>&1


The setsid and "kill -SIG -$pid" was intentional,
to be sure to kill the process group.
Agents may spawn childs, killing
the agent should cleanup those childs as well.

Why did you change that?

Did it not work?
Break something?

Thanks,

--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: ocft updated (test tool of resource-agnets) [ In reply to ]
Hi John,

On Sun, Jan 20, 2013 at 09:23:05AM -0700, John Shi wrote:
> Medium: tools: ocft: update to version 0.44
>
> Added "incremental" mode (ocft test -i) , cache results and
> not repeatedly rerun those cases which succeeded.
>
> Improved *ocft make*, the ocft will only make the updated test-case file.
>
> The ocft test prints the actual case names instead of just case numbers.

Can you please split the patch into several self-contained
patches, each of which fixes a single issue.

Great work!

Thanks,

Dejan


> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/