From a6af4062f87deb0df53e5d3e64db4e2dcd8f92de Mon Sep 17 00:00:00 2001 From: sophia Date: Tue, 20 Jul 2021 16:54:57 -0500 Subject: [PATCH] Save point --- internal/client/testing.go | 10 ---------- internal/runner/operation.go | 3 +-- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/internal/client/testing.go b/internal/client/testing.go index dd052aa69..f86b69a20 100644 --- a/internal/client/testing.go +++ b/internal/client/testing.go @@ -27,20 +27,10 @@ func TestBasis(t testing.T, opts ...Option) *Basis { basis, err := New(ctx, WithClient(client), WithLocal()) require.NoError(err) - // // Initialize our client - // result, err := New(ctx, append([]Option{ - // WithBasis(basis), - // WithProjectRef(&pb.Ref_Project{Project: "test_p"}), - // }, opts...)...) - // require.NoError(err) - // Move into a temporary directory td := testTempDir(t) testChdir(t, td) - // Create a valid vagrant configuration file - // configpkg.TestConfigFile(t, configpkg.TestSource(t)) - return basis } diff --git a/internal/runner/operation.go b/internal/runner/operation.go index 2d4b79b1c..c5b70b1a7 100644 --- a/internal/runner/operation.go +++ b/internal/runner/operation.go @@ -99,8 +99,7 @@ func (r *Runner) executeJob( // Determine the evaluation context we'll be using log.Trace("reading configuration", "path", path) - pppp := filepath.Dir(path) - cfg, err := configpkg.Load(path, pppp) + cfg, err := configpkg.Load(path, filepath.Dir(path)) if err != nil { log.Warn("failed here trying to read configuration", "path", path) cfg = &configpkg.Config{}