1#!/usr/bin/env python3 2# -*- coding: utf-8 -*- 3# Copyright 2020 The Chromium OS Authors. 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"""Check to see if the working set produces a good executable.""" 8 9from __future__ import print_function 10 11import os 12import sys 13 14from binary_search_tool.test import common 15 16 17def Main(): 18 if not os.path.exists('./is_setup'): 19 return 1 20 working_set = common.ReadWorkingSet() 21 for w in working_set: 22 if w == 1: 23 return 1 ## False, linking failure 24 return 0 25 26 27if __name__ == '__main__': 28 retval = Main() 29 sys.exit(retval) 30