# HG changeset patch # User Jeff Hammel # Date 1472083510 25200 # Node ID 6496dae95f0d8620951927930fbc6254f09a7091 # Parent b407681e6f2c58ff531dbcac40d77e772d35b5de add a few more variables to track; we will want to output them diff -r b407681e6f2c -r 6496dae95f0d fail.py --- a/fail.py Tue Aug 23 16:36:39 2016 -0700 +++ b/fail.py Wed Aug 24 17:05:10 2016 -0700 @@ -39,10 +39,15 @@ # run the subcommand process = subprocess.Popen(options.command, shell=True) stdout, stderr = process.communicate() + + # update variables ctr += 1 + now = time.time() + duration = now - program_start_time + elapsed = now - start_loop # print iteration information - print ("Iteration {}".format(ctr)) + print ("Iteration {ctr}".format(ctr=ctr)) # test it if process.returncode not in options.codes: