-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexampleGradingScriptWithArgs.py
executable file
·30 lines (24 loc) · 1.39 KB
/
exampleGradingScriptWithArgs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/python3
#
# Challenge Sever
# Copyright 2024 Carnegie Mellon University.
# NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
# Licensed under a MIT (SEI)-style license, please see license.txt or contact [email protected] for full terms.
# [DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.
# DM24-0645
#
import logging
import subprocess
import sys
logging.info(f"Got args {sys.argv}")
results = {}
if sys.argv[1] == 'test':
results['GradingCheck1'] = "Success -- this is the expected value"
else:
results['GradingCheck1'] = "Failure -- this is not the exected value"
if sys.argv[2] == "test2":
results['GradingCheck2'] = "Success -- this is the expected value"
else:
results['GradingCheck2'] = "Failure -- this is not the exected value"
for key, value in results.items():
print(key, ' : ', value)