nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
907ea33
)
nitunit: set more environment variables NIT_TESTING_ID and SRAND
author
Jean Privat
<jean@pryen.org>
Wed, 25 May 2016 19:34:04 +0000
(15:34 -0400)
committer
Jean Privat
<jean@pryen.org>
Wed, 25 May 2016 19:34:04 +0000
(15:34 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/nitunit.nit
patch
|
blob
|
history
diff --git
a/src/nitunit.nit
b/src/nitunit.nit
index
0d89dc6
..
878d3f2
100644
(file)
--- a/
src/nitunit.nit
+++ b/
src/nitunit.nit
@@
-64,6
+64,8
@@
if toolcontext.opt_gen_unit.value then
end
"NIT_TESTING".setenv("true")
+"NIT_TESTING_ID".setenv(pid.to_s)
+"SRAND".setenv("0")
var test_dir = toolcontext.test_dir
test_dir.mkdir