All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "lttng-tools: filter random filename of ptest output"
@ 2016-07-22 20:53 Nathan Lynch
       [not found] ` <57957417.6040208@windriver.com>
  2016-08-02  1:33 ` Paul Eggleton
  0 siblings, 2 replies; 5+ messages in thread
From: Nathan Lynch @ 2016-07-22 20:53 UTC (permalink / raw)
  To: openembedded-core

This reverts commit 29a8c45be2862be02afe2ebbc5c026a42f351990.

A few things wrong with this change:

1. It patches a patch (runtest-2.4.0.patch).
2. It introduces deviations from the desired ptest output format.
3. It discards PASS: lines from the test output; I *want* to see those.
4. The upstream status of "pending" is incorrect; I do not see this
   patch on the lttng-dev mailing list (not that it would apply anyway).

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
---
 ...ls-filter-random-filename-of-tests-output.patch | 55 ----------------------
 meta/recipes-kernel/lttng/lttng-tools_git.bb       |  1 -
 2 files changed, 56 deletions(-)
 delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch

diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
deleted file mode 100644
index fed5a2fb59d6..000000000000
--- a/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From b9744428d6dfb1cba7b6e3fdbf0613977914b12f Mon Sep 17 00:00:00 2001
-From: Dengke Du <dengke.du@windriver.com>
-Date: Fri, 29 Apr 2016 03:25:58 -0400
-Subject: [PATCH] lttng-tools: filter random filename of tests output
-
-Show the failed tests, filter the random filename when the test
-passed, add up the result.
-
-Upstream-Status: Pending
-
-Signed-off-by: Dengke Du <dengke.du@windriver.com>
----
- tests/run.sh | 25 +++++++++++++++++++++++--
- 1 file changed, 23 insertions(+), 2 deletions(-)
-
-diff --git a/tests/run.sh b/tests/run.sh
-index 6455359..9080afc 100755
---- a/tests/run.sh
-+++ b/tests/run.sh
-@@ -17,9 +17,30 @@
- # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- #
- 
-+# Define two variable to store the passed and failed result
-+pass_count=0
-+fail_count=0
-+
- [ -z "$1" ] && echo "Error: No testlist. Please specify a testlist to run." && exit 1
- 
--prove --merge -v --exec '' - < $1 | sed \
-+# Using a while loop to add up the passed and failed result, we use Here Strings
-+# "<<<" in bash in order to redirect the test output to the while loop. If put the
-+# test output as a pipeline, the while loop will run in subshell, we can't get the
-+# pass_count and fail_count when the subshell exit. 
-+while read line
-+do
-+	if [[ $line == "FAIL"* ]]; then
-+		echo $line;((fail_count=fail_count+1))
-+	fi  
-+	if [[ $line == "PASS"* ]]; then
-+		((pass_count=pass_count+1))
-+	fi  
-+done <<< "$(prove --merge -v --exec '' - < $1 | sed \
-   -e 's|^ok \(.*\)|PASS: \1|' \
-   -e 's|^not ok \(.*\)|FAIL: \1|' \
--  | egrep -h 'PASS|FAIL'
-+  | egrep -h 'PASS|FAIL')"
-+
-+# Add up the result and output the passed and failed tests
-+echo "$1 statistics"
-+echo "total pass: $pass_count tests passed!"
-+echo "total fail: $fail_count tests failed!"
--- 
-2.8.1
-
diff --git a/meta/recipes-kernel/lttng/lttng-tools_git.bb b/meta/recipes-kernel/lttng/lttng-tools_git.bb
index da2b68552bce..b0c369ce964a 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_git.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_git.bb
@@ -29,7 +29,6 @@ PACKAGECONFIG_remove_libc-musl = "lttng-ust"
 SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.7 \
            file://stop-using-SIGUNUSED.patch \
            file://runtest-2.4.0.patch \
-           file://0001-lttng-tools-filter-random-filename-of-tests-output.patch \
            file://run-ptest"
 
 S = "${WORKDIR}/git"
-- 
2.5.5



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

* Re: [PATCH] Revert "lttng-tools: filter random filename of ptest output"
       [not found] ` <57957417.6040208@windriver.com>
@ 2016-07-25 13:34   ` Nathan Lynch
  2016-07-26  0:24     ` dengke.du
  0 siblings, 1 reply; 5+ messages in thread
From: Nathan Lynch @ 2016-07-25 13:34 UTC (permalink / raw)
  To: dengke.du; +Cc: openembedded-core

[please remember to cc the list]

On 07/24/2016 09:06 PM, dengke.du@windriver.com wrote:
> OK, thanks for your remind, the 1,2 and 4 I will pick it up. I show a
> total PASS beacuse when the tests PASS that it output many random
> filenames.

I'm sorry but I don't understand what you intend to do, and I'm unsure
what you mean by "random filenames".  If you have some QA analysis code
which cannot handle strange or unpredictable filenames in the output
then that's what should be fixed.

Please accept the revert, thanks.


> 
> //dengke
> 
> On 2016年07月23日 04:53, Nathan Lynch wrote:
>> This reverts commit 29a8c45be2862be02afe2ebbc5c026a42f351990.
>>
>> A few things wrong with this change:
>>
>> 1. It patches a patch (runtest-2.4.0.patch).
>> 2. It introduces deviations from the desired ptest output format.
>> 3. It discards PASS: lines from the test output; I *want* to see those.
>> 4. The upstream status of "pending" is incorrect; I do not see this
>>     patch on the lttng-dev mailing list (not that it would apply anyway).
>>
>> Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
>> ---
>>   ...ls-filter-random-filename-of-tests-output.patch | 55
>> ----------------------
>>   meta/recipes-kernel/lttng/lttng-tools_git.bb       |  1 -
>>   2 files changed, 56 deletions(-)
>>   delete mode 100644
>> meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>>
>>
>> diff --git
>> a/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>> b/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>>
>> deleted file mode 100644
>> index fed5a2fb59d6..000000000000
>> ---
>> a/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>>
>> +++ /dev/null
>> @@ -1,55 +0,0 @@
>> -From b9744428d6dfb1cba7b6e3fdbf0613977914b12f Mon Sep 17 00:00:00 2001
>> -From: Dengke Du <dengke.du@windriver.com>
>> -Date: Fri, 29 Apr 2016 03:25:58 -0400
>> -Subject: [PATCH] lttng-tools: filter random filename of tests output
>> -
>> -Show the failed tests, filter the random filename when the test
>> -passed, add up the result.
>> -
>> -Upstream-Status: Pending
>> -
>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>
>> ----
>> - tests/run.sh | 25 +++++++++++++++++++++++--
>> - 1 file changed, 23 insertions(+), 2 deletions(-)
>> -
>> -diff --git a/tests/run.sh b/tests/run.sh
>> -index 6455359..9080afc 100755
>> ---- a/tests/run.sh
>> -+++ b/tests/run.sh
>> -@@ -17,9 +17,30 @@
>> - # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
>> 02111-1307, USA.
>> - #
>> -
>> -+# Define two variable to store the passed and failed result
>> -+pass_count=0
>> -+fail_count=0
>> -+
>> - [ -z "$1" ] && echo "Error: No testlist. Please specify a testlist
>> to run." && exit 1
>> -
>> --prove --merge -v --exec '' - < $1 | sed \
>> -+# Using a while loop to add up the passed and failed result, we use
>> Here Strings
>> -+# "<<<" in bash in order to redirect the test output to the while
>> loop. If put the
>> -+# test output as a pipeline, the while loop will run in subshell, we
>> can't get the
>> -+# pass_count and fail_count when the subshell exit.
>> -+while read line
>> -+do
>> -+    if [[ $line == "FAIL"* ]]; then
>> -+        echo $line;((fail_count=fail_count+1))
>> -+    fi
>> -+    if [[ $line == "PASS"* ]]; then
>> -+        ((pass_count=pass_count+1))
>> -+    fi
>> -+done <<< "$(prove --merge -v --exec '' - < $1 | sed \
>> -   -e 's|^ok \(.*\)|PASS: \1|' \
>> -   -e 's|^not ok \(.*\)|FAIL: \1|' \
>> --  | egrep -h 'PASS|FAIL'
>> -+  | egrep -h 'PASS|FAIL')"
>> -+
>> -+# Add up the result and output the passed and failed tests
>> -+echo "$1 statistics"
>> -+echo "total pass: $pass_count tests passed!"
>> -+echo "total fail: $fail_count tests failed!"
>> ---
>> -2.8.1
>> -
>> diff --git a/meta/recipes-kernel/lttng/lttng-tools_git.bb
>> b/meta/recipes-kernel/lttng/lttng-tools_git.bb
>> index da2b68552bce..b0c369ce964a 100644
>> --- a/meta/recipes-kernel/lttng/lttng-tools_git.bb
>> +++ b/meta/recipes-kernel/lttng/lttng-tools_git.bb
>> @@ -29,7 +29,6 @@ PACKAGECONFIG_remove_libc-musl = "lttng-ust"
>>   SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.7 \
>>              file://stop-using-SIGUNUSED.patch \
>>              file://runtest-2.4.0.patch \
>> -          
>> file://0001-lttng-tools-filter-random-filename-of-tests-output.patch \
>>              file://run-ptest"
>>     S = "${WORKDIR}/git"
> 



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

* Re: [PATCH] Revert "lttng-tools: filter random filename of ptest output"
  2016-07-25 13:34   ` Nathan Lynch
@ 2016-07-26  0:24     ` dengke.du
  0 siblings, 0 replies; 5+ messages in thread
From: dengke.du @ 2016-07-26  0:24 UTC (permalink / raw)
  To: Nathan Lynch; +Cc: openembedded-core

OK, thanks!

//dengke

On 2016年07月25日 21:34, Nathan Lynch wrote:
> [please remember to cc the list]
>
> On 07/24/2016 09:06 PM, dengke.du@windriver.com wrote:
>> OK, thanks for your remind, the 1,2 and 4 I will pick it up. I show a
>> total PASS beacuse when the tests PASS that it output many random
>> filenames.
> I'm sorry but I don't understand what you intend to do, and I'm unsure
> what you mean by "random filenames".  If you have some QA analysis code
> which cannot handle strange or unpredictable filenames in the output
> then that's what should be fixed.
>
> Please accept the revert, thanks.
>
>
>> //dengke
>>
>> On 2016年07月23日 04:53, Nathan Lynch wrote:
>>> This reverts commit 29a8c45be2862be02afe2ebbc5c026a42f351990.
>>>
>>> A few things wrong with this change:
>>>
>>> 1. It patches a patch (runtest-2.4.0.patch).
>>> 2. It introduces deviations from the desired ptest output format.
>>> 3. It discards PASS: lines from the test output; I *want* to see those.
>>> 4. The upstream status of "pending" is incorrect; I do not see this
>>>      patch on the lttng-dev mailing list (not that it would apply anyway).
>>>
>>> Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
>>> ---
>>>    ...ls-filter-random-filename-of-tests-output.patch | 55
>>> ----------------------
>>>    meta/recipes-kernel/lttng/lttng-tools_git.bb       |  1 -
>>>    2 files changed, 56 deletions(-)
>>>    delete mode 100644
>>> meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>>>
>>>
>>> diff --git
>>> a/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>>> b/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>>>
>>> deleted file mode 100644
>>> index fed5a2fb59d6..000000000000
>>> ---
>>> a/meta/recipes-kernel/lttng/lttng-tools/0001-lttng-tools-filter-random-filename-of-tests-output.patch
>>>
>>> +++ /dev/null
>>> @@ -1,55 +0,0 @@
>>> -From b9744428d6dfb1cba7b6e3fdbf0613977914b12f Mon Sep 17 00:00:00 2001
>>> -From: Dengke Du <dengke.du@windriver.com>
>>> -Date: Fri, 29 Apr 2016 03:25:58 -0400
>>> -Subject: [PATCH] lttng-tools: filter random filename of tests output
>>> -
>>> -Show the failed tests, filter the random filename when the test
>>> -passed, add up the result.
>>> -
>>> -Upstream-Status: Pending
>>> -
>>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>
>>> ----
>>> - tests/run.sh | 25 +++++++++++++++++++++++--
>>> - 1 file changed, 23 insertions(+), 2 deletions(-)
>>> -
>>> -diff --git a/tests/run.sh b/tests/run.sh
>>> -index 6455359..9080afc 100755
>>> ---- a/tests/run.sh
>>> -+++ b/tests/run.sh
>>> -@@ -17,9 +17,30 @@
>>> - # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
>>> 02111-1307, USA.
>>> - #
>>> -
>>> -+# Define two variable to store the passed and failed result
>>> -+pass_count=0
>>> -+fail_count=0
>>> -+
>>> - [ -z "$1" ] && echo "Error: No testlist. Please specify a testlist
>>> to run." && exit 1
>>> -
>>> --prove --merge -v --exec '' - < $1 | sed \
>>> -+# Using a while loop to add up the passed and failed result, we use
>>> Here Strings
>>> -+# "<<<" in bash in order to redirect the test output to the while
>>> loop. If put the
>>> -+# test output as a pipeline, the while loop will run in subshell, we
>>> can't get the
>>> -+# pass_count and fail_count when the subshell exit.
>>> -+while read line
>>> -+do
>>> -+    if [[ $line == "FAIL"* ]]; then
>>> -+        echo $line;((fail_count=fail_count+1))
>>> -+    fi
>>> -+    if [[ $line == "PASS"* ]]; then
>>> -+        ((pass_count=pass_count+1))
>>> -+    fi
>>> -+done <<< "$(prove --merge -v --exec '' - < $1 | sed \
>>> -   -e 's|^ok \(.*\)|PASS: \1|' \
>>> -   -e 's|^not ok \(.*\)|FAIL: \1|' \
>>> --  | egrep -h 'PASS|FAIL'
>>> -+  | egrep -h 'PASS|FAIL')"
>>> -+
>>> -+# Add up the result and output the passed and failed tests
>>> -+echo "$1 statistics"
>>> -+echo "total pass: $pass_count tests passed!"
>>> -+echo "total fail: $fail_count tests failed!"
>>> ---
>>> -2.8.1
>>> -
>>> diff --git a/meta/recipes-kernel/lttng/lttng-tools_git.bb
>>> b/meta/recipes-kernel/lttng/lttng-tools_git.bb
>>> index da2b68552bce..b0c369ce964a 100644
>>> --- a/meta/recipes-kernel/lttng/lttng-tools_git.bb
>>> +++ b/meta/recipes-kernel/lttng/lttng-tools_git.bb
>>> @@ -29,7 +29,6 @@ PACKAGECONFIG_remove_libc-musl = "lttng-ust"
>>>    SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.7 \
>>>               file://stop-using-SIGUNUSED.patch \
>>>               file://runtest-2.4.0.patch \
>>> -
>>> file://0001-lttng-tools-filter-random-filename-of-tests-output.patch \
>>>               file://run-ptest"
>>>      S = "${WORKDIR}/git"



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

* Re: [PATCH] Revert "lttng-tools: filter random filename of ptest output"
  2016-07-22 20:53 [PATCH] Revert "lttng-tools: filter random filename of ptest output" Nathan Lynch
       [not found] ` <57957417.6040208@windriver.com>
@ 2016-08-02  1:33 ` Paul Eggleton
  2016-08-02  2:08   ` Nathan Lynch
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2016-08-02  1:33 UTC (permalink / raw)
  To: Nathan Lynch; +Cc: openembedded-core

Hi Nathan,

On Fri, 22 Jul 2016 15:53:46 Nathan Lynch wrote:
> This reverts commit 29a8c45be2862be02afe2ebbc5c026a42f351990.
> 
> A few things wrong with this change:
> 
> 1. It patches a patch (runtest-2.4.0.patch).
> 2. It introduces deviations from the desired ptest output format.
> 3. It discards PASS: lines from the test output; I *want* to see those.
> 4. The upstream status of "pending" is incorrect; I do not see this
>    patch on the lttng-dev mailing list (not that it would apply anyway).

FYI, "pending" doesn't mean "pending acceptance", it means "pending 
determination" so it was probably correct here - not that that makes any 
difference to the other reasons for reverting. "Pending" is perhaps a bit of a 
poor term though. In any event the reference is here in case you need it:

  http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: [PATCH] Revert "lttng-tools: filter random filename of ptest output"
  2016-08-02  1:33 ` Paul Eggleton
@ 2016-08-02  2:08   ` Nathan Lynch
  0 siblings, 0 replies; 5+ messages in thread
From: Nathan Lynch @ 2016-08-02  2:08 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On 08/01/2016 08:33 PM, Paul Eggleton wrote:
> Hi Nathan,
> 
> On Fri, 22 Jul 2016 15:53:46 Nathan Lynch wrote:
>> This reverts commit 29a8c45be2862be02afe2ebbc5c026a42f351990.
>>
>> A few things wrong with this change:
>>
>> 1. It patches a patch (runtest-2.4.0.patch).
>> 2. It introduces deviations from the desired ptest output format.
>> 3. It discards PASS: lines from the test output; I *want* to see those.
>> 4. The upstream status of "pending" is incorrect; I do not see this
>>    patch on the lttng-dev mailing list (not that it would apply anyway).
> 
> FYI, "pending" doesn't mean "pending acceptance", it means "pending 
> determination" so it was probably correct here - not that that makes any 
> difference to the other reasons for reverting. "Pending" is perhaps a bit of a 
> poor term though. In any event the reference is here in case you need it:
> 
>   http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations

Thanks for the pointer, I think I was indeed conflating pending and
submitted.




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

end of thread, other threads:[~2016-08-02  2:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-22 20:53 [PATCH] Revert "lttng-tools: filter random filename of ptest output" Nathan Lynch
     [not found] ` <57957417.6040208@windriver.com>
2016-07-25 13:34   ` Nathan Lynch
2016-07-26  0:24     ` dengke.du
2016-08-02  1:33 ` Paul Eggleton
2016-08-02  2:08   ` Nathan Lynch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.