1
0
Fork 0

Remove testing

This commit is contained in:
Félix Piédallu 2024-02-15 00:04:50 +01:00
parent 76aa4c9f0a
commit c0f75ea887

View file

@ -262,7 +262,6 @@ class AppAutoUpdater:
@staticmethod @staticmethod
def sha256_of_remote_file(url: str) -> str: def sha256_of_remote_file(url: str) -> str:
print(f"Computing sha256sum for {url} ...") print(f"Computing sha256sum for {url} ...")
return ""
try: try:
r = requests.get(url, stream=True) r = requests.get(url, stream=True)
m = hashlib.sha256() m = hashlib.sha256()
@ -481,13 +480,13 @@ class StdoutSwitch:
def run_autoupdate_for_multiprocessing(data) -> tuple[bool, str, Any] | None: def run_autoupdate_for_multiprocessing(data) -> tuple[bool, str, Any] | None:
app, edit, commit, pr = data app, edit, commit, pr = data
# stdoutswitch = StdoutSwitch() stdoutswitch = StdoutSwitch()
try: try:
result = AppAutoUpdater(app).run(edit=edit, commit=commit, pr=pr) result = AppAutoUpdater(app).run(edit=edit, commit=commit, pr=pr)
if result is not False: if result is not False:
return True, app, result return True, app, result
except Exception: except Exception:
# result = stdoutswitch.reset() result = stdoutswitch.reset()
import traceback import traceback
t = traceback.format_exc() t = traceback.format_exc()
return False, app, f"{result}\n{t}" return False, app, f"{result}\n{t}"
@ -510,7 +509,7 @@ def main() -> None:
parser.error("--pr requires --commit") parser.error("--pr requires --commit")
# Handle apps or no apps # Handle apps or no apps
apps = list(args.apps) if args.apps else ["mobilizon"] # apps_to_run_auto_update_for() apps = list(args.apps) if args.apps else apps_to_run_auto_update_for()
apps_failed = {} apps_failed = {}
apps_updated = {} apps_updated = {}