Build the shared test site into a directory that is made new, with a test, and give the zip archives fixed member times so equal files make equal bytes
This commit is contained in:
1 parent
c645159ae7
commit
5d86a42ad1
3 files changed
+58
-4
No files matched your search
@@ -32,7 +32,10 @@ _built = bool(PREBUILT)
|
||||
|
||||
|
||||
def build(out, *extra, env=None):
|
||||
"""Run the site build into out (a directory that need not exist). Raises when it fails."""
|
||||
"""Run the site build into out, a directory that is made new: whatever was there is removed first,
|
||||
so nothing in it can be a page an earlier build (of another branch, say) wrote and this one
|
||||
does not. Raises when the build fails."""
|
||||
shutil.rmtree(out, ignore_errors=True)
|
||||
done = subprocess.run([sys.executable, os.path.join(WEB, "build.py"), "--out", out, *extra],
|
||||
stdout=subprocess.DEVNULL, stderr=subprocess.PIPE, text=True, env=env)
|
||||
if done.returncode:
|
||||
|
||||
Reference in new issue
Block a user