| commit | 4936de3834a2c70db563d19975c072bb42d953cc | [log] [tgz] |
|---|---|---|
| author | Josh Bleecher Snyder <josharian@gmail.com> | Wed May 07 13:50:04 2025 +0000 |
| committer | Josh Bleecher Snyder <josharian@gmail.com> | Wed May 07 14:02:13 2025 -0700 |
| tree | b4e4e9eb513236636c523ca70d7e2983157af156 | |
| parent | 593ca6455ea14bf48f6ae4ff6f5d3296c6befa7b [diff] [blame] |
all: make update_tests.sh scripts location-independent Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/loop/update_tests.sh b/loop/update_tests.sh index f6be384..1e78edd 100755 --- a/loop/update_tests.sh +++ b/loop/update_tests.sh
@@ -1,4 +1,11 @@ #!/bin/bash +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +CURRENT_DIR=$(pwd) + +cd "$SCRIPT_DIR" + go test -httprecord . go test + +cd "$CURRENT_DIR"