From 9992edfa79755556b711f33ad8ce41bc7a0884b7 Mon Sep 17 00:00:00 2001 From: "Cel A. Skeggs" Date: Tue, 16 Mar 2021 14:47:36 -0400 Subject: [PATCH] update --- .gitignore | 1 + Makefile | 6 ++---- src/kvraft/test_test.go | 2 ++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7a247e6..a209ee8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ pkg/ api.key +.api.key.trimmed *-handin.tar.gz diff --git a/Makefile b/Makefile index 011bb21..f6a9382 100644 --- a/Makefile +++ b/Makefile @@ -28,10 +28,8 @@ LABS=" lab1 lab2a lab2b lab2c lab2d lab3a lab3b lab4a lab4b " read line; \ 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; \ - mv api.key api.key.fix ; \ - cat api.key.fix | tr -d '\n' > api.key ; \ - rm api.key.fix ; \ - curl -F file=@$@-handin.tar.gz -F "key= .api.key.trimmed ; \ + curl -F file=@$@-handin.tar.gz -F "key=<.api.key.trimmed" \ https://6824.scripts.mit.edu/2021/handin.py/upload > /dev/null || { \ echo ; \ echo "Submit seems to have failed."; \ diff --git a/src/kvraft/test_test.go b/src/kvraft/test_test.go index bcff99a..162eb7e 100644 --- a/src/kvraft/test_test.go +++ b/src/kvraft/test_test.go @@ -412,6 +412,8 @@ func GenericTestSpeed(t *testing.T, part string, maxraftstate int) { if dur > numOps*timePerOp { t.Fatalf("Operations completed too slowly %v/op > %v/op\n", dur/numOps, timePerOp) } + + cfg.end() } func TestBasic3A(t *testing.T) {