diff options
Diffstat (limited to 'deps/v8/tools/clusterfuzz/v8_foozzie.py')
-rwxr-xr-x | deps/v8/tools/clusterfuzz/v8_foozzie.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/tools/clusterfuzz/v8_foozzie.py b/deps/v8/tools/clusterfuzz/v8_foozzie.py index ff481e9370..3b05d3829c 100755 --- a/deps/v8/tools/clusterfuzz/v8_foozzie.py +++ b/deps/v8/tools/clusterfuzz/v8_foozzie.py @@ -213,14 +213,15 @@ def parse_args(): assert os.path.exists(options.first_d8) assert os.path.exists(options.second_d8) + # Ensure we make a sane comparison. + if (options.first_d8 == options.second_d8 and + options.first_config == options.second_config): + parser.error('Need either executable or config difference.') + # Infer architecture from build artifacts. options.first_arch = infer_arch(options.first_d8) options.second_arch = infer_arch(options.second_d8) - # Ensure we make a sane comparison. - if (options.first_arch == options.second_arch and - options.first_config == options.second_config): - parser.error('Need either arch or config difference.') assert options.first_arch in SUPPORTED_ARCHS assert options.second_arch in SUPPORTED_ARCHS assert options.first_config in CONFIGS |