1#!/usr/bin/env python
2
3# Copyright (c) 2014 Google Inc. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7"""
8Verifies that failing actions make the build fail reliably, even when there
9are multiple actions in one project.
10"""
11
12import os
13import sys
14import TestGyp
15import TestCmd
16
17test = TestGyp.TestGyp(formats=['msvs'], workdir='workarea_all')
18
19test.run_gyp('actions.gyp')
20test.build('actions.gyp',
21           target='actions-test',
22           status=1,
23           stdout=r'.*"cmd\.exe" exited with code 1\..*',
24           match=TestCmd.match_re_dotall)
25
26test.pass_test()
27