Skip to content
Snippets Groups Projects
Unverified Commit 00168cf5 authored by Ryan Hancock's avatar Ryan Hancock
Browse files

Update scripts

parent f08259cc
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
set -e
echo "Updating our own directory"
git pull origin master
echo "Cloning/Updating assignment directory"
git clone https://git.uwaterloo.ca/krhancoc/cs350-assignments.git os161-container/assignments > /dev/null 2> /dev/null
cd os161-container/assignments > /dev/null
git pull origin master > /dev/null 2> /dev/null
cd - > /dev/null
echo "Building CS350 container"
docker build -t os161-runner ./os161-container
......@@ -50,8 +50,9 @@ class Report:
class Test:
def __init__(self, log):
log = [l for l in log if len(l) > 0]
self.name = log[0].split("=")[1]
self._log = "\n".join(log[4:])
self.name = log[0].split("=")[1].strip("<").strip(">")
# Remove the TEST=#### line
self._log = "\n".join(log[1:])
def results(self):
return self._log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment