Improving log capture of TAP tests with IPC::Run

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Improving log capture of TAP tests with IPC::Run
Date: 2015-06-25 04:14:29
Message-ID: CAB7nPqT1R2jEVWW3DoXaV9hBLgYED_hYBRXtfJd7DzGjVxWpZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

After looking at the issues with the TAP test suite that hamster faced
a couple of days ago, which is what has been discussed on this thread:
http://www.postgresql.org/message-id/13002.1434307025@sss.pgh.pa.us

I have developed a patch to improve log capture of the TAP tests by
being able to collect stderr and stdout output of each command run in
the tests by using more extensively IPC::Run::run (instead of system()
that is not able to help much) that has already been sent on the
thread above.

This patch looks worth having in the TAP suite to track problems,
hence this thread dedicated to it. The patch has been added as well to
the next CF.
Regards,
--
Michael

Attachment Content-Type Size
20150620_tap_improve_logs_v3.patch text/x-patch 15.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2015-06-25 04:19:11 Re: git push hook to check for outdated timestamps
Previous Message Amit Langote 2015-06-25 04:09:01 Re: 9.5 release notes