From 24bb4585af263106b7b158326b59069f98f40b86 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Jul 2022 09:42:06 +0530 Subject: [PATCH] Allow easily skipping tests when updating on ox --- update-on-ox | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update-on-ox b/update-on-ox index 69a5ccf94..f7f34e630 100755 --- a/update-on-ox +++ b/update-on-ox @@ -51,8 +51,10 @@ with open(__file__, 'rb') as f: script = script[:script.find('# EOF_REMOTE')].replace('if False:', 'if True:', 1) with tempfile.NamedTemporaryFile(prefix='install-dmg-', suffix='.py') as f: cmd = 'python ../bypy macos program --dont-strip' - if sys.argv[-1] == 'sign': + if 'sign' in sys.argv: cmd += ' --sign-installers --notarize' + if 'skip_tests' in sys.argv: + cmd += ' --skip-tests' run(cmd) f.write(script.encode('utf-8')) f.flush()