* [LTP] [PATCH] logrotate: support new rotate debug message
@ 2024-11-28 7:28 Po-Hsu Lin
2024-12-02 1:11 ` Wei Gao via ltp
2024-12-03 10:10 ` Petr Vorel
0 siblings, 2 replies; 5+ messages in thread
From: Po-Hsu Lin @ 2024-11-28 7:28 UTC (permalink / raw)
To: ltp; +Cc: po-hsu.lin
This test was found failing on Ubuntu Oracular with:
grep -q forced from command line (5 rotations) tst_logrotate.out
failed unexpectedly
This is because the logrotate debug message has been changed in upstream:
https://github.com/logrotate/logrotate/commit/be6a263c87
Include the new debug message to fix this issue.
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
---
testcases/commands/logrotate/logrotate_tests.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/commands/logrotate/logrotate_tests.sh b/testcases/commands/logrotate/logrotate_tests.sh
index 0aa9f12e1..1cd355f02 100755
--- a/testcases/commands/logrotate/logrotate_tests.sh
+++ b/testcases/commands/logrotate/logrotate_tests.sh
@@ -90,7 +90,7 @@ test1()
ROD logrotate -fv tst_logrotate.conf > tst_logrotate.out 2>&1
EXPECT_PASS grep -q "reading config file tst_logrotate.conf" tst_logrotate.out
- EXPECT_PASS grep -q "forced from command line (5 rotations)" tst_logrotate.out
+ EXPECT_PASS grep -E -q "forced from command line (5 rotations)|forced from command line empty log files are rotated, \(5 rotations\)" tst_logrotate.out
EXPECT_PASS grep -E -q "compressing new|log with" tst_logrotate.out
check_log /var/log/tst_logfile.1.gz
--
2.25.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] logrotate: support new rotate debug message
2024-11-28 7:28 [LTP] [PATCH] logrotate: support new rotate debug message Po-Hsu Lin
@ 2024-12-02 1:11 ` Wei Gao via ltp
2024-12-03 10:10 ` Petr Vorel
1 sibling, 0 replies; 5+ messages in thread
From: Wei Gao via ltp @ 2024-12-02 1:11 UTC (permalink / raw)
To: Po-Hsu Lin; +Cc: ltp
On Thu, Nov 28, 2024 at 03:28:19PM +0800, Po-Hsu Lin wrote:
> This test was found failing on Ubuntu Oracular with:
> grep -q forced from command line (5 rotations) tst_logrotate.out
> failed unexpectedly
>
> This is because the logrotate debug message has been changed in upstream:
> https://github.com/logrotate/logrotate/commit/be6a263c87
New msg contain extra string "empty log files are rotated" compare with original one but i have not see
any relation with above commit, correct me if i am wrong.
>
> Include the new debug message to fix this issue.
>
> Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
> ---
> testcases/commands/logrotate/logrotate_tests.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/commands/logrotate/logrotate_tests.sh b/testcases/commands/logrotate/logrotate_tests.sh
> index 0aa9f12e1..1cd355f02 100755
> --- a/testcases/commands/logrotate/logrotate_tests.sh
> +++ b/testcases/commands/logrotate/logrotate_tests.sh
> @@ -90,7 +90,7 @@ test1()
> ROD logrotate -fv tst_logrotate.conf > tst_logrotate.out 2>&1
>
> EXPECT_PASS grep -q "reading config file tst_logrotate.conf" tst_logrotate.out
> - EXPECT_PASS grep -q "forced from command line (5 rotations)" tst_logrotate.out
> + EXPECT_PASS grep -E -q "forced from command line (5 rotations)|forced from command line empty log files are rotated, \(5 rotations\)" tst_logrotate.out
I guess you forget escape "(" and ")" for the original string after add "-E"
/command line (5 rotations)|forced from/command line \(5 rotations\)|forced from/s
> EXPECT_PASS grep -E -q "compressing new|log with" tst_logrotate.out
>
> check_log /var/log/tst_logfile.1.gz
> --
> 2.25.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] logrotate: support new rotate debug message
2024-11-28 7:28 [LTP] [PATCH] logrotate: support new rotate debug message Po-Hsu Lin
2024-12-02 1:11 ` Wei Gao via ltp
@ 2024-12-03 10:10 ` Petr Vorel
2024-12-03 10:57 ` Po-Hsu Lin
1 sibling, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2024-12-03 10:10 UTC (permalink / raw)
To: Po-Hsu Lin; +Cc: ltp
Hi all,
> This test was found failing on Ubuntu Oracular with:
> grep -q forced from command line (5 rotations) tst_logrotate.out
> failed unexpectedly
> This is because the logrotate debug message has been changed in upstream:
> https://github.com/logrotate/logrotate/commit/be6a263c87
> Include the new debug message to fix this issue.
...
FYI alternative patch which removes the test entirely:
https://lore.kernel.org/ltp/20241203100540.445098-1-pvorel@suse.cz/
https://patchwork.ozlabs.org/project/ltp/patch/20241203100540.445098-1-pvorel@suse.cz/
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] logrotate: support new rotate debug message
2024-12-03 10:10 ` Petr Vorel
@ 2024-12-03 10:57 ` Po-Hsu Lin
2024-12-04 11:43 ` Petr Vorel
0 siblings, 1 reply; 5+ messages in thread
From: Po-Hsu Lin @ 2024-12-03 10:57 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
On Tue, 3 Dec 2024 at 18:10, Petr Vorel <pvorel@suse.cz> wrote:
> Hi all,
>
> > This test was found failing on Ubuntu Oracular with:
> > grep -q forced from command line (5 rotations) tst_logrotate.out
> > failed unexpectedly
>
> > This is because the logrotate debug message has been changed in upstream:
> > https://github.com/logrotate/logrotate/commit/be6a263c87
>
> > Include the new debug message to fix this issue.
> ...
>
> FYI alternative patch which removes the test entirely:
>
> https://lore.kernel.org/ltp/20241203100540.445098-1-pvorel@suse.cz/
>
> https://patchwork.ozlabs.org/project/ltp/patch/20241203100540.445098-1-pvorel@suse.cz/
>
> Hi
I am +1 with removing this test.
Thanks for the review and feedback.
Po-Hsu
> Kind regards,
> Petr
>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH] logrotate: support new rotate debug message
2024-12-03 10:57 ` Po-Hsu Lin
@ 2024-12-04 11:43 ` Petr Vorel
0 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2024-12-04 11:43 UTC (permalink / raw)
To: Po-Hsu Lin; +Cc: ltp
Hi all,
...
> I am +1 with removing this test.
> Thanks for the review and feedback.
> Po-Hsu
FYI setting this in patchwork as "Not Applicable" due test being removed:
https://github.com/linux-test-project/ltp/commit/bde9fdcfc69aa01f9de87f8083cb6b0c9deb1a44
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-04 11:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-28 7:28 [LTP] [PATCH] logrotate: support new rotate debug message Po-Hsu Lin
2024-12-02 1:11 ` Wei Gao via ltp
2024-12-03 10:10 ` Petr Vorel
2024-12-03 10:57 ` Po-Hsu Lin
2024-12-04 11:43 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox