Discussion:
[Linux-ha-dev] ocft updated (test tool of resource-agnets)
John Shi
2013-01-20 16:23:05 UTC
Permalink
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.
Lars Ellenberg
2013-01-21 10:44:25 UTC
Permalink
Post by John Shi
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.
John Shi
2013-01-22 09:39:45 UTC
Permalink
Hi Lars,

Because I found setsid have a different behavior between interactive shell and non-interactive shell.

I show the command first:

***@linux-ub7v:~> setsid sleep 5 & echo "$! setsid"; sleep 1; ps -eo pid,args | grep sleep | grep -v grep
12498 setsid
12502 sleep 5

***@linux-ub7v:~> killall sleep

***@linux-ub7v:~> bash -c 'setsid sleep 5 & echo "$! setsid"; sleep 1; ps -eo pid,args | grep sleep | grep -v grep'
12507 setsid
12507 sleep 5

***@linux-ub7v:~> setsid --version
setsid from util-linux 2.21.2
The first commands were executed by an interactive shell, we can see there are the different pid between setsid and sleep,

but the third commands, I put them into a non-interactive shell, and
then, we can see there are the same pid of setsid and sleep.

I guess setsid in first command may be "fork -> exec sleep by child
-> parent exit" and setsid in third command just do "exec sleep"
directly.

If I am right, why does setsid have a different behavior between interactive shell and non-interactive shell ?

So I am not sure the setsid have a same behavior on each LINUXs, can you point me ?
Thanks in advance!

Best regards,
John
Post by John Shi
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.
Dejan Muhamedagic
2013-01-21 20:20:11 UTC
Permalink
Hi John,
Post by John Shi
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
Post by John Shi
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
John Shi
2013-01-22 09:21:37 UTC
Permalink
Done.
Hi John,
Post by John Shi
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
Post by John Shi
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-***@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Dejan Muhamedagic
2013-01-28 11:49:02 UTC
Permalink
Post by Dejan Muhamedagic
Done.
Applied now.

Many thanks for the contribution!

Cheers,

Dejan
Post by Dejan Muhamedagic
Hi John,
Post by John Shi
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
Post by John Shi
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Loading...