Patchwork arg-log-format-0001/test-0001.sh: sync up the date as klog-0001.log

login
register
mail settings
Submitter Keng-Yu Lin
Date May 23, 2012, 6:49 a.m.
Message ID <1337755792-26904-1-git-send-email-kengyu@canonical.com>
Download mbox | patch
Permalink /patch/160886/
State Accepted
Headers show

Comments

Keng-Yu Lin - May 23, 2012, 6:49 a.m.
Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
---
 arg-log-format-0001/test-0001.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Colin King - May 23, 2012, 7:59 a.m.
On 23/05/12 07:49, Keng-Yu Lin wrote:
> Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
> ---
>   arg-log-format-0001/test-0001.sh |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arg-log-format-0001/test-0001.sh b/arg-log-format-0001/test-0001.sh
> index 75c1c9e..ac536c4 100755
> --- a/arg-log-format-0001/test-0001.sh
> +++ b/arg-log-format-0001/test-0001.sh
> @@ -10,7 +10,7 @@ $FWTS -w 80 --klog=klog.txt --log-format="%owner (%line) <%date> %field %level:
>   #
>   #  Need to adjust reference log to today's date
>   #
> -sed sx10\/10\/11x${TODAY}x < klog-0001.log > $TMPLOG_ORIG
> +sed sx16\/05\/12x${TODAY}x < klog-0001.log > $TMPLOG_ORIG
>   diff $TMPLOG $TMPLOG_ORIG >> $FAILURE_LOG
>   ret=$?
>   if [ $ret -eq 0 ]; then
>

Thanks Keng-Yu, seems like I need to re-test my tests 24 hours later to 
catch my stupid mistakes like this. Doh.

Acked-by: Colin Ian King <colin.king@canonical.com>
Alex Hung - May 24, 2012, 8:49 a.m.
On 05/23/2012 02:49 PM, Keng-Yu Lin wrote:
> Signed-off-by: Keng-Yu Lin<kengyu@canonical.com>
> ---
>   arg-log-format-0001/test-0001.sh |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arg-log-format-0001/test-0001.sh b/arg-log-format-0001/test-0001.sh
> index 75c1c9e..ac536c4 100755
> --- a/arg-log-format-0001/test-0001.sh
> +++ b/arg-log-format-0001/test-0001.sh
> @@ -10,7 +10,7 @@ $FWTS -w 80 --klog=klog.txt --log-format="%owner (%line)<%date>  %field %level:
>   #
>   #  Need to adjust reference log to today's date
>   #
> -sed sx10\/10\/11x${TODAY}x<  klog-0001.log>  $TMPLOG_ORIG
> +sed sx16\/05\/12x${TODAY}x<  klog-0001.log>  $TMPLOG_ORIG
>   diff $TMPLOG $TMPLOG_ORIG>>  $FAILURE_LOG
>   ret=$?
>   if [ $ret -eq 0 ]; then
Acked-by: Alex Hung <alex.hung@canonical.com>

Patch

diff --git a/arg-log-format-0001/test-0001.sh b/arg-log-format-0001/test-0001.sh
index 75c1c9e..ac536c4 100755
--- a/arg-log-format-0001/test-0001.sh
+++ b/arg-log-format-0001/test-0001.sh
@@ -10,7 +10,7 @@  $FWTS -w 80 --klog=klog.txt --log-format="%owner (%line) <%date> %field %level:
 #
 #  Need to adjust reference log to today's date
 #
-sed sx10\/10\/11x${TODAY}x < klog-0001.log > $TMPLOG_ORIG
+sed sx16\/05\/12x${TODAY}x < klog-0001.log > $TMPLOG_ORIG
 diff $TMPLOG $TMPLOG_ORIG >> $FAILURE_LOG
 ret=$?
 if [ $ret -eq 0 ]; then