Add assertion for long commands on Windows for e2e_divider

Bug: 1419802
Change-Id: Ie80a84d34e0a249d625cae477475f35bfe81d2a0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4765266
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
This commit is contained in:
Al Muthanna Athamina
2023-08-09 09:48:45 +00:00
committed by Devtools-frontend LUCI CQ
parent 366f38b65a
commit 34b5ae61b2
+6 -2
View File
@@ -120,5 +120,9 @@ if __name__ == '__main__':
iterations=int(args.iterations),
shuffle=args.shuffle)
for command in commands:
print(' '.join([f'{k}={v}' for k, v in command['env'].items()] +
command['command']))
command_text = ' '.join(
[f'{k}={v}'
for k, v in command['env'].items()] + command['command'])
assert len(command_text) < 8191,\
'Command is too long for Windows, consider increasing the number of shards'
print(command_text)