Browse Source

test overlay fixes

The MMGen Project 3 years ago
parent
commit
5d6e79783f
2 changed files with 4 additions and 1 deletions
  1. 1 1
      test/overlay/__init__.py
  2. 3 0
      test/overlay/fakemods/crypto.py

+ 1 - 1
test/overlay/__init__.py

@@ -12,7 +12,7 @@ def overlay_setup(repo_root):
 				d == 'mmgen.data' or
 				d == 'mmgen' and fn.startswith('secp256k1')
 			):
-				if fn in fakemods:
+				if d == 'mmgen' and fn in fakemods:
 					make_link(
 						os.path.join(fakemod_dir,fn),
 						os.path.join(destdir,fn) )

+ 3 - 0
test/overlay/fakemods/crypto.py

@@ -1,10 +1,13 @@
 from .crypto_orig import *
 
 if os.getenv('MMGEN_TEST_SUITE_DETERMINISTIC'):
+
 	get_random_orig = get_random
 	add_user_random_orig = add_user_random
 
+	import sys
 	fake_rand_h = sha256('.'.join(sys.argv).encode())
+
 	def fake_urandom(n):
 
 		def gen(rounds):