aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/tools/unittests/testdata/testroot1/d8_mocked.py
blob: d67e0304f6393268430c4073bf0b9fe013f7405a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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.
"""

# for py2/py3 compatibility
from __future__ import print_function

import sys

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