No title

1
2
3
4
5
6
7
8
9
10
11
12
13
        # 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