[qmtest] Working Directory changed?
Mark Mitchell
mark at codesourcery.com
Fri Mar 3 16:49:46 UTC 2006
Ted Hörnstedt wrote:
> Before the working directory in qmtest (at least within a test class) was the directory where the qmt test file resided. Now it seems to be the qmtest DB root directory or is it the working directory when qmtest was invoked?
The chdir was unsafe in the presence of parallel test runs, i.e.,
"qmtest run -j N", because a process may only have a single "current
directory", even if it has multiple threads.
The context variable "qmtest.dbpath" contains the root of the database.
So, you can have your individual tests change to that directory (if
they run in a separate process), or use that variable to create
filenames that will work (if your tests run as part of QMTest itself).
--
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713
More information about the qmtest
mailing list