aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/tools/unittests/testdata/testroot1/d8_mocked.py
blob: c7ca55a571b824cb5d707aed24602bbc5b9c0a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright 2017 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""
Dummy d8 replacement. Just passes all test, except if 'berries' is in args.
"""

import sys

args = ' '.join(sys.argv[1:])
print args
# Let all berries fail.
if 'berries' in args:
  sys.exit(1)
sys.exit(0)