This commit is contained in:
Cel A. Skeggs
2021-03-16 14:47:36 -04:00
parent 8947299250
commit 9992edfa79
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
pkg/ pkg/
api.key api.key
.api.key.trimmed
*-handin.tar.gz *-handin.tar.gz

View File

@@ -28,10 +28,8 @@ LABS=" lab1 lab2a lab2b lab2c lab2d lab3a lab3b lab4a lab4b "
read line; \ read line; \
if test "$$line" != "yes" ; then echo "Giving up submission"; exit; fi; \ if test "$$line" != "yes" ; then echo "Giving up submission"; exit; fi; \
if test `stat -c "%s" "$@-handin.tar.gz" 2>/dev/null || stat -f "%z" "$@-handin.tar.gz"` -ge 20971520 ; then echo "File exceeds 20MB."; exit; fi; \ if test `stat -c "%s" "$@-handin.tar.gz" 2>/dev/null || stat -f "%z" "$@-handin.tar.gz"` -ge 20971520 ; then echo "File exceeds 20MB."; exit; fi; \
mv api.key api.key.fix ; \ cat api.key | tr -d '\n' > .api.key.trimmed ; \
cat api.key.fix | tr -d '\n' > api.key ; \ curl -F file=@$@-handin.tar.gz -F "key=<.api.key.trimmed" \
rm api.key.fix ; \
curl -F file=@$@-handin.tar.gz -F "key=<api.key" \
https://6824.scripts.mit.edu/2021/handin.py/upload > /dev/null || { \ https://6824.scripts.mit.edu/2021/handin.py/upload > /dev/null || { \
echo ; \ echo ; \
echo "Submit seems to have failed."; \ echo "Submit seems to have failed."; \

View File

@@ -412,6 +412,8 @@ func GenericTestSpeed(t *testing.T, part string, maxraftstate int) {
if dur > numOps*timePerOp { if dur > numOps*timePerOp {
t.Fatalf("Operations completed too slowly %v/op > %v/op\n", dur/numOps, timePerOp) t.Fatalf("Operations completed too slowly %v/op > %v/op\n", dur/numOps, timePerOp)
} }
cfg.end()
} }
func TestBasic3A(t *testing.T) { func TestBasic3A(t *testing.T) {