File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 6060popd
6161
6262bash test-ruleset-coverage.sh
63+ # Echo the version of sqlite3, since the determinism of the build depends on
64+ # having the same version.
65+ echo " To reproduce this build (https://wiki.debian.org/ReproducibleBuilds)," \
66+ " please use this version of sqlite3:"
67+ sqlite3 -version
6368echo -e " Git commit ` git rev-parse HEAD` \nsha256sum ` sha256sum $XPI_NAME ` "
Original file line number Diff line number Diff line change 1818# It's also helpful to ensure consistency for the lowercase check below.
1919locale .setlocale (locale .LC_ALL , 'C' )
2020
21- conn = sqlite3 .connect (os .path .join (os .path .dirname (__file__ ), '../src/defaults/rulesets.sqlite' ))
21+ # Removing the file before we create it avoids some non-determinism.
22+ db_path = os .path .join (os .path .dirname (__file__ ), '../src/defaults/rulesets.sqlite' )
23+ if os .path .isfile (db_path ):
24+ os .remove (db_path )
25+ conn = sqlite3 .connect (db_path )
2226c = conn .cursor ()
2327c .execute ('''DROP TABLE IF EXISTS rulesets''' )
2428c .execute ('''CREATE TABLE rulesets
You can’t perform that action at this time.
0 commit comments