http://code.google.com/p/mb-unit/issues/detail?id=665

On May 10, 4:32 pm, mark Kharitonov <[email protected]> wrote:
> Can anyone confirm my observations?
>
> On Mon, May 3, 2010 at 9:16 PM, mark Kharitonov
> <[email protected]>wrote:
>
>
>
> > The scenario is simple. I have a project in Hudson. The project defined two
> > environment variables:
> > NCLOGS - the path to the folder containing the logs - points to a folder
> > inside the project workspace
> > CI_TAG - references the Hudson build number
>
> > The app.config of the test assembly defines log4net section, which contains
> > this line:
> >     <file type="log4net.Util.PatternString"
> > value="${NCLOGS}\NC.Entities.Test${CI_TAG}.%processid.log" />
>
> > Now, the tests are run in IsolatedProcess. When I observe the logs
> > directory I see the logs for the server processes (there are three), but no
> > client side log, which turns out in the root directory C:\ and its name does
> > not contain the build number, unlike the server logs.
>
> > From which I deduce, that Gallio.Host did not inherit these environment
> > variables. I made the test outside CI - defined these variables manually and
> > run the tests first in IsolatedAppDomain, then in IsolatedProcess. In the
> > first case all the logs, including the client side (which are the unit
> > tests) were created OK, while in the second case - the client side log was
> > created under the root C:\.
>
> > Hence my conclusion that Gallio.Host did not inherit the environment.
>
> > On Sun, May 2, 2010 at 7:43 PM, Jeff Brown <[email protected]> wrote:
>
> >> I am not sure I understand.  The host process should inherit the
> >> environment.
>
> >> Is there a specific variable that is missing?
>
> >> On Apr 29, 2010 12:40 AM, "Mark Kharitonov" <[email protected]>
> >> wrote:
> >> > Hi.
> >> > We are running unit tests from Hudson CI server.
> >> > CI server defines certain environment variables which are used by the
> >> > log4net configuration to configure the log file location and name.
>
> >> > Running the unit tests includes spawning 4 processes, which is done by
> >> > msbuild:
> >> > 1. Server
> >> > 2. Two agents
> >> > 3. Gallio.Host to actually run the tests - aka client.
>
> >> > All the processes, but Gallio.Host inherit these environment variables
> >> > and create the logs as expected. Gallio.Host, on the other hand, seems
> >> > to ignore them.
>
> >> > We are using Gallio Version 3.1 build 449
>
> >> > Is there a way to make Gallio.Host honor the environment variables of
> >> > the parent process? At least, some of them?
>
> >> > Thanks.
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> Groups "MbUnit.User" group.
> >> > To post to this group, send email to [email protected].
> >> > To unsubscribe from this group, send email to
> >> [email protected]<mbunituser%[email protected]>
> >> .
> >> > For more options, visit this group at
> >>http://groups.google.com/group/mbunituser?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "MbUnit.User" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<mbunituser%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/mbunituser?hl=en.
>
> > --
> > Be well and prosper.
> > ==============================
> > "There are two kinds of people.Those whose guns are loaded and those who
> > dig."
> >   ("The good, the bad and the ugly")
> > So let us drink for our guns always be loaded.
>
> --
> Be well and prosper.
> ==============================
> "There are two kinds of people.Those whose guns are loaded and those who
> dig."
>   ("The good, the bad and the ugly")
> So let us drink for our guns always be loaded.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "MbUnit.User" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/mbunituser?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en.

Reply via email to