summaryrefslogtreecommitdiff
path: root/SCons/SConsignTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/SConsignTests.py')
-rw-r--r--SCons/SConsignTests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/SCons/SConsignTests.py b/SCons/SConsignTests.py
index d4f44183a..e9f20718d 100644
--- a/SCons/SConsignTests.py
+++ b/SCons/SConsignTests.py
@@ -28,6 +28,7 @@ import TestCmd
import SCons.dblite
import SCons.SConsign
+from SCons.Util import get_hash_format, get_current_hash_algorithm_used
class BuildInfo:
def merge(self, object):
@@ -295,7 +296,10 @@ class SConsignFileTestCase(SConsignTestCase):
file = test.workpath('sconsign_file')
assert SCons.SConsign.DataBase == {}, SCons.SConsign.DataBase
- assert SCons.SConsign.DB_Name == ".sconsign", SCons.SConsign.DB_Name
+ if get_hash_format() is None and get_current_hash_algorithm_used() == 'md5':
+ assert SCons.SConsign.DB_Name == ".sconsign", SCons.SConsign.DB_Name
+ else:
+ assert SCons.SConsign.DB_Name == ".sconsign_{}".format(get_current_hash_algorithm_used()), SCons.SConsign.DB_Name
assert SCons.SConsign.DB_Module is SCons.dblite, SCons.SConsign.DB_Module
SCons.SConsign.File(file)