fixes #43 - Exit status not reported back to caller
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -17,7 +17,8 @@ CASPER_ARGS.extend([os.path.join(CASPER_PATH, 'bin', 'bootstrap.js'), '--casper- | ... | @@ -17,7 +17,8 @@ CASPER_ARGS.extend([os.path.join(CASPER_PATH, 'bin', 'bootstrap.js'), '--casper- |
17 | CASPER_ARGS.extend(sys.argv[1:]) | 17 | CASPER_ARGS.extend(sys.argv[1:]) |
18 | 18 | ||
19 | try: | 19 | try: |
20 | subprocess.call(CASPER_ARGS) | 20 | status = subprocess.call(CASPER_ARGS) |
21 | except KeyboardInterrupt: | 21 | except KeyboardInterrupt: |
22 | print '\nCasperJS interrupted, exiting.' | 22 | print '\nCasperJS interrupted, exiting.' |
23 | sys.exit() | 23 | status = 0 |
24 | sys.exit(status) | ... | ... |
... | @@ -467,7 +467,6 @@ var Tester = function(casper, options) { | ... | @@ -467,7 +467,6 @@ var Tester = function(casper, options) { |
467 | } | 467 | } |
468 | } | 468 | } |
469 | if (exit === true) { | 469 | if (exit === true) { |
470 | console.log('exiting with status: ' + exitStatus); | ||
471 | casper.exit(exitStatus); | 470 | casper.exit(exitStatus); |
472 | } | 471 | } |
473 | }; | 472 | }; | ... | ... |
-
Please register or sign in to post a comment