From 2c6efbfd5d15e00455211205e71504eec62715c5 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Tue, 24 Apr 2012 17:31:01 -0400 Subject: [PATCH] only run problem testing when test command is entered in CLI --- common/lib/capa/checker.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/common/lib/capa/checker.py b/common/lib/capa/checker.py index 5e0bd34211..83dfdcc847 100755 --- a/common/lib/capa/checker.py +++ b/common/lib/capa/checker.py @@ -38,11 +38,10 @@ def main(): if args.command == 'test': test_problem(problem) - - log_captured_output(problem_stdout, - "captured stdout from {0}".format(problem_file.name)) - log_captured_output(problem_stderr, - "captured stderr from {0}".format(problem_file.name)) + log_captured_output(problem_stdout, + "captured stdout from {0}".format(problem_file.name)) + log_captured_output(problem_stderr, + "captured stderr from {0}".format(problem_file.name)) # Print captured problem prints problem_file.close()