From 14ad5b97f155cf74d8bca9410180d478da2d2e7a Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 8 Nov 2018 17:46:45 -0800 Subject: [PATCH] Still try and upload testedpkgs even if comm 'fails' From local experimentation, it still actually produces the output, even though it prints the message about the order being wrong and exits 1. Signed-off-by: Adam Williamson --- tests/_advisory_post.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/_advisory_post.pm b/tests/_advisory_post.pm index 39597a4b..5b255431 100644 --- a/tests/_advisory_post.pm +++ b/tests/_advisory_post.pm @@ -18,10 +18,9 @@ sub run { upload_logs "/tmp/allpkgs.txt", failok=>1; upload_logs "/var/log/updatepkgs.txt", failok=>1; } - else { - # here, it worked. - upload_logs "/var/log/testedpkgs.txt"; - } + # we'll try and upload the output even if comm 'failed', as it + # does in fact still write it in some cases + upload_logs "/var/log/testedpkgs.txt", failok=>1; } sub test_flags {