1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/dumpScreen.py Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +""" 1.7 +test dumpScreen functionality 1.8 +""" 1.9 + 1.10 +import automationutils 1.11 +import optparse 1.12 +import os 1.13 +import sys 1.14 + 1.15 + 1.16 +def main(args=sys.argv[1:]): 1.17 + 1.18 + # parse CLI options 1.19 + usage = '%prog [options] path/to/OBJDIR/dist/bin' 1.20 + parser = optparse.OptionParser(usage=usage) 1.21 + options, args = parser.parse_args(args) 1.22 + if len(args) != 1: 1.23 + parser.error("Please provide utility path") 1.24 + utilityPath = args[0] 1.25 + 1.26 + # dump the screen to a data: URL 1.27 + uri = automationutils.dumpScreen(utilityPath) 1.28 + 1.29 + # print the uri 1.30 + print uri 1.31 + 1.32 +if __name__ == '__main__': 1.33 + main()