1# Copyright 2017 the V8 project authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""
6Dummy d8 replacement. Just passes all test, except if 'berries' is in args.
7"""
8
9# for py2/py3 compatibility
10from __future__ import print_function
11
12import sys
13
14args = ' '.join(sys.argv[1:])
15print(args)
16# Let all berries fail.
17if 'berries' in args:
18  sys.exit(1)
19sys.exit(0)
20