Save point

This commit is contained in:
sophia 2021-07-20 16:54:57 -05:00 committed by Paul Hinze
parent 45e1564a81
commit a6af4062f8
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 1 additions and 12 deletions

View File

@ -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
}

View File

@ -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{}