lttng-tools: remove bogus argument from prove invocation
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hey
Quoted 4 lines · Nathan Lynch
An argument of "$2" was added to the prove command line in
tests/run.shby68270f0f604e"Mi test: Basic test structure". This is harmless sincerun.shis never called with more than one argument, but
The multiple arguments could be overcome by adding "" to the multiple test files list but as you said it is confusing and error prone.
This actually can be used to debug test with a "-v". Or add any basic arguments to the prove command and was simply convenient at the time.If this actually break patch from OE ( I assume OE stand for OpenEmbedded and you are talking about this commit [1]) I'm okai with reverting the change I introduced.
Thanks
Cheers!
[1]
https://github.com/openembedded/oe-core/commit/d0d184045e8034ddbc77549e681f187e12ab1d08
Quoted 1 line
it is confusing, and it breaks patches in OE that add support for
running tests on the target.
Quoted 26 lines
Signed-off-by Nathan Lynch <[email protected]>--- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/run.sh +0
-0@@ -19,4 +19,4 @@ [ -z "$1" ] && echo "Error: No testlist. Please specify a testlist torun." && exit 1
tests/run.sh +1
-2-prove $2 --merge --exec '' - < $1 +prove --merge --exec '' - < $1 --1.9.3
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 1 line
Jonathan Rajotte Julien
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): CAF4oYfEgNmiThfUW9Kj8+pYu-3QdE4KtUivr9mztf-Jb-=rocQ@mail.gmail.com
Quoted 10 lines · Jonathan Rajotte
Hey
On Mon, Oct 27, 2014 at 10:00 PM, Nathan Lynch <[email protected] <mailto:[email protected]>> wrote:
An argument of "$2" was added to the prove command line in
tests/run.shby68270f0f604e"Mi test: Basic test structure". This is harmless sincerun.shis never called with more than one argument, but
Quoted 8 lines
The multiple arguments could be overcome by adding "" to the multiple test files list but as you said it is confusing and error prone.
This actually can be used to debug test with a "-v". Or add any basic arguments to the prove command and was simply convenient at the time.If this actually break patch from OE ( I assume OE stand for OpenEmbedded and you are talking about this commit [1]) I'm okai with reverting the change I introduced.
I didn't intend to imply that upstream LTTng is responsible for keeping patches working in a downstream project like OE. I mentioned OE because that's how my attention was drawn to this change.
If the $2 argument has a legitimate use, I suggest that it be made a bit more clear since 1) the commit that introduced it didn't mention it at all, and 2) no code in-tree actually makes use of the extra argument.
I figured it was likely a mistake.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 22 lines · Nathan Lynch
Quoted 7 lines · Jonathan Rajotte
Hey
On Mon, Oct 27, 2014 at 10:00 PM, Nathan Lynch <[email protected] <mailto:[email protected]>> wrote:
An argument of "$2" was added to the prove command line in
tests/run.shby68270f0f604e"Mi test: Basic test structure". Thisis
Quoted 1 line
harmless since
run.shis never called with more than one argument,but
Quoted 10 lines
The multiple arguments could be overcome by adding "" to the multiple test files list but as you said it is confusing and error prone.
This actually can be used to debug test with a "-v". Or add any basic arguments to the prove command and was simply convenient at the time.If this actually break patch from OE ( I assume OE stand for OpenEmbedded and you are talking about this commit [1]) I'm okai with reverting the change I introduced.
Quoted 3 lines
I didn't intend to imply that upstream LTTng is responsible for keeping patches working in a downstream project like OE. I mentioned OE because that's how my attention was drawn to this change.
Did not take it like that :)
Quoted 9 lines
If the $2 argument has a legitimate use, I suggest that it be made a bit more clear since 1) the commit that introduced it didn't mention it at all, and 2) no code in-tree actually makes use of the extra argument.
I figured it was likely a mistake.
Which kind of was. This wasn't supposed to be merge and was a mistake on my part when formatting the patch. It was discussed with David before merging and we decided to keep it since it was not harmful or *used* and proved useful. But with the effect it has and unwanted repercussion(confusion, missing mention in commit etc.) it seems not every aspect where evaluated. Hence I don't mind this patch and almost welcome it.
Cheers!
Signature · 1 line
Jonathan R.Julien
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Merged thanks!
David
Quoted 29 lines · Nathan Lynch
An argument of "$2" was added to the prove command line in
tests/run.shby68270f0f604e"Mi test: Basic test structure". This is harmless sincerun.shis never called with more than one argument, but it is confusing, and it breaks patches in OE that add support for running tests on the target.Signed-off-by Nathan Lynch <[email protected]>--- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/run.sh +1
-1@@ -19,4 +19,4 @@ [ -z "$1" ] && echo "Error: No testlist. Please specify a testlist to run." && exit 1 -prove $2 --merge --exec '' - < $1 +prove --merge --exec '' - < $1Signature · 7 lines
1.9.3 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev