• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4490: Add -log option to capture STDOUT and STDIN in a standard way

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension UnitTests Enhancement Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Redirect STDOUT and STDERR to a log file for easy result gathering.

For example,

perl ../bin/TestRunner.pl -log Fn_GROUPS.pm

should caputre output in a log file without needing shell-specific redirects (which are a PITA in DOS)

-- TWiki:Main/CrawfordCurrie - 23 Aug 2007

Found an interesting feature of sanbox while I was doing this; the sandbox is in fact a global singleton, and is not specific to each individual TWiki request. This wasn't clear from the code, and banjaxed me for a while.

There's a lingering problem with redirecting STDERR, because perl open doesn't like redirecting to /dev/null (for reasons unknown) on Linux.


Summary Add -log option to capture STDOUT and STDIN in a standard way
ReportedBy TWiki:Main.CrawfordCurrie

SVN Range TWiki-4.2.0, Wed, 22 Aug 2007, build 14581
AppliesTo Extension
Component UnitTests
Priority Enhancement
CurrentState Closed

Checkins TWikirev:14614
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-08-24 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback