Revision dc7e0e2246cbd0bc2373a59389305df4a32104b5 authored by Nathan Froyd on 12 June 2014, 19:14:43 UTC, committed by Nathan Froyd on 12 June 2014, 19:14:43 UTC
1 parent 1f885a5
dumpScreen.py
#!/usr/bin/env python
"""
test dumpScreen functionality
"""
import automationutils
import optparse
import os
import sys
def main(args=sys.argv[1:]):
# parse CLI options
usage = '%prog [options] path/to/OBJDIR/dist/bin'
parser = optparse.OptionParser(usage=usage)
options, args = parser.parse_args(args)
if len(args) != 1:
parser.error("Please provide utility path")
utilityPath = args[0]
# dump the screen to a data: URL
uri = automationutils.dumpScreen(utilityPath)
# print the uri
print uri
if __name__ == '__main__':
main()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...