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