Commit 1839b78f 1839b78f17505c57b1716af955ffc2b8e950e860 by Nicolas Perriault

fixes #43 - Exit status not reported back to caller

1 parent 1d116e5c
...@@ -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 };
......