is_good.py revision bccc576843ee27fefda5094afc88489f4cbff3ff
1#!/usr/bin/python2
2"""Check to see if the working set produces a good executable."""
3
4from __future__ import print_function
5
6import sys
7
8import common
9
10
11def Main():
12  if not common.installed:
13    return 1
14  working_set = common.ReadWorkingSet()
15  for w in working_set:
16    if w == 1:
17      return 1  ## False, linking failure
18  return 0
19
20
21if __name__ == '__main__':
22  retval = Main()
23  sys.exit(retval)
24