mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 20:59:30 +00:00
Enable go test in ci
This commit is contained in:
@@ -152,7 +152,7 @@ func TestFailFast(t *testing.T) {
|
||||
defer os.RemoveAll(tmpDir)
|
||||
|
||||
cfg := cmds.Agent{
|
||||
ServerURL: "http://127.0.0.1:-1/",
|
||||
ServerURL: "http://127.0.0.1:0/",
|
||||
DataDir: tmpDir,
|
||||
}
|
||||
|
||||
|
||||
11
scripts/generate
Executable file
11
scripts/generate
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
rm -rf build/data
|
||||
mkdir -p build/data
|
||||
|
||||
GO=${GO-go}
|
||||
|
||||
echo Running: "${GO}" generate
|
||||
"${GO}" generate
|
||||
@@ -31,3 +31,5 @@ if [ -n "$DIRTY" ]; then
|
||||
git status --porcelain --untracked-files=no
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"${GO}" test -v ./...
|
||||
|
||||
Reference in New Issue
Block a user