Report a paste

Please put a quick comment for the admin.

If it looks like spam, the admin will mark it as spam so that the spam filter picks it up in the future.

If the paste contains something private or offensive, it'll probably just be deleted.

No title

        # If output is none, then this is a reference-impl based testcase
        if output is None:
            reference_impl = test_case.assignment_template.reference_impl
            if not reference_impl:
                raise Exception("No output or reference implementation")

            with open(os.path.join(data_dir, "code.py"), 'w') as code_file:
                code_file.write(instance_result.code_snapshot)

            container.attach_wait(lxc.attach_run_command, ['/bin/bash', '/pyschool/bootstrap.sh'])

            with open(os.path.join(data_dir, "stdout"), 'r') as stdout_file:
                expected_output = stdout_file.read().strip()  # get rid of trailing newline