forked from unimatrix/web
fix(boards): run CLI provisioning from the approved release
This commit is contained in:
parent
2c0b5967e5
commit
ec27d61a25
1 changed files with 3 additions and 4 deletions
|
|
@ -12,10 +12,9 @@ import subprocess
|
|||
import tempfile
|
||||
|
||||
EXPECTED = {
|
||||
'provision-system-boards.php': 'b866ac27a8caf56d89307d386a9eac4a977f524646f4b2251e750d24e2fe6b5c',
|
||||
'system-board-membership.php': '8d9fc7126a229b2ca0f6033ec0647946e418558981af75eb731ef5526f63a15f',
|
||||
}
|
||||
FILES = ['system-board-provision.php', 'provision-system-boards.php', 'system-board-membership.php']
|
||||
FILES = ['system-board-provision.php', 'system-board-membership.php']
|
||||
PROMOTION_STATE = Path('/mnt/HC_Volume_107481500/dunegit/ci/promotion')
|
||||
|
||||
|
||||
|
|
@ -56,7 +55,7 @@ def main():
|
|||
if not (target / 'global.php').is_file():
|
||||
raise RuntimeError('Native MyBB installation missing')
|
||||
changes = publication_changes(source, target)
|
||||
for name in FILES:
|
||||
for name in [*FILES, 'provision-system-boards.php']:
|
||||
subprocess.run(['php', '-l', str(source / name)], check=True, capture_output=True)
|
||||
for name in ['test-system-board-policy.php', 'test-system-board-provision.php']:
|
||||
subprocess.run(['php', str(source / name)], check=True, capture_output=True)
|
||||
|
|
@ -89,7 +88,7 @@ def main():
|
|||
'--env-file=/home/dunerealms/.config/dunerealms.env',
|
||||
str(release / 'ops/system-board-snapshot.mjs')],
|
||||
check=True, capture_output=True, text=True)
|
||||
result = subprocess.run(['php', str(target / 'provision-system-boards.php')],
|
||||
result = subprocess.run(['php', str(source / 'provision-system-boards.php')],
|
||||
input=snapshot.stdout, check=True, capture_output=True, text=True)
|
||||
# Existing native permission tests inspect real MyBB without editing users.
|
||||
subprocess.run(['php', str(source / 'test-system-board-native.php')], check=True, capture_output=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff