Home | History | Annotate | Download | only in test
      1 #!/usr/bin/python2
      2 """Prints out index for every object file, starting from 0."""
      3 
      4 from __future__ import print_function
      5 
      6 import sys
      7 
      8 from cros_utils import command_executer
      9 import common
     10 
     11 
     12 def Main():
     13   ce = command_executer.GetCommandExecuter()
     14   _, l, _ = ce.RunCommandWOutput(
     15       'cat {0} | wc -l'.format(common.OBJECTS_FILE), print_to_console=False)
     16   for i in range(0, int(l)):
     17     print(i)
     18 
     19 
     20 if __name__ == '__main__':
     21   Main()
     22   sys.exit(0)
     23