Save point
This commit is contained in:
parent
45e1564a81
commit
a6af4062f8
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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{}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user