Mercurial > hg > fail
changeset 2:d1880117acb5
attempt to correct documentation display on pypi
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 23 Aug 2016 14:58:00 -0700 |
parents | a4680e54c481 |
children | d3a4f7b41944 |
files | README.txt fail.py setup.py |
diffstat | 3 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/README.txt Tue Aug 23 13:57:20 2016 -0700 +++ b/README.txt Tue Aug 23 14:58:00 2016 -0700 @@ -7,8 +7,9 @@ I=0; while ./do_some_things.py --param $arg; do I=$((I+1)); echo Iteration ${I}; sleep 1; done + fun things to try ----------------- +----------------- Russian roulette (with two chambers):: @@ -18,5 +19,4 @@ Jeff Hammel - - +http://k0s.org/
--- a/fail.py Tue Aug 23 13:57:20 2016 -0700 +++ b/fail.py Tue Aug 23 14:58:00 2016 -0700 @@ -29,13 +29,15 @@ ctr = 0 while True: - print ("Iteration {}".format(ctr)) ctr += 1 # run it process = subprocess.Popen(options.command, shell=True) _, _ = process.communicate() + + print ("Iteration {}".format(ctr)) + # test it if process.returncode not in options.codes: sys.exit(process.returncode)