tests.sh: add NIT_TESTING_ID with the same semantic than with nitunit
authorJean Privat <jean@pryen.org>
Wed, 25 May 2016 19:36:09 +0000 (15:36 -0400)
committerJean Privat <jean@pryen.org>
Thu, 26 May 2016 12:58:34 +0000 (08:58 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/tests.sh

index 84ba34a..d11c60a 100755 (executable)
@@ -21,6 +21,8 @@
 export LANG=C
 export LC_ALL=C
 export NIT_TESTING=true
+# Use the pid as a collision prevention
+export NIT_TESTING_ID=$$
 export NIT_SRAND=0
 
 unset NIT_DIR