Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for scriptCommands (0.16 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

            protected Builder addLine(String line) {
                scriptCommands.append(line).append('\n')
                return this
            }
    
            ShellScript writeTo(TestFile baseDir, String basename) {
                def scriptFile = baseDir.file(basename + scriptExtension)
                scriptFile.write(scriptCommands.toString())
                return build(scriptFile)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. pkg/volume/iscsi/iscsi_util_test.go

    		},
    		{
    			Cmd:  "iscsiadm",
    			Args: []string{"-m", "iface", "-I", TestIface, "-o", "update", "-n", "iface.transport_name", "-v", "tcp"},
    		},
    	}
    	volumetest.ScriptCommands(fakeExec, scripts)
    	fakeExec.ExactOrder = true
    	plugins := []volume.VolumePlugin{
    		&iscsiPlugin{
    			host: nil,
    		},
    	}
    	plugin := plugins[0]
    	fakeMounter := iscsiDiskMounter{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 09:43:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  3. src/cmd/go/scriptcmds_test.go

    package main_test
    
    import (
    	"cmd/go/internal/script"
    	"cmd/go/internal/script/scripttest"
    	"cmd/go/internal/work"
    	"errors"
    	"fmt"
    	"os"
    	"os/exec"
    	"strings"
    	"sync"
    	"time"
    )
    
    func scriptCommands(interrupt os.Signal, waitDelay time.Duration) map[string]script.Cmd {
    	cmds := scripttest.DefaultCmds()
    
    	// Customize the "exec" interrupt signal and grace period.
    	var cancel func(cmd *exec.Cmd) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. pkg/volume/testing/volume_host.go

    	return types.NodeName(f.nodeName)
    }
    
    func (f *fakeVolumeHost) GetEventRecorder() record.EventRecorder {
    	return nil
    }
    
    func (f *fakeVolumeHost) ScriptCommands(scripts []CommandScript) {
    	ScriptCommands(f.exec, scripts)
    }
    
    func (f *fakeVolumeHost) WaitForKubeletErrNil() error {
    	return wait.PollImmediate(10*time.Millisecond, 10*time.Second, func() (bool, error) {
    		f.mux.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. src/cmd/go/script_test.go

    		t.Cleanup(cancel)
    	}
    
    	env, err := scriptEnv(srv, certFile)
    	if err != nil {
    		t.Fatal(err)
    	}
    	engine := &script.Engine{
    		Conds: scriptConditions(),
    		Cmds:  scriptCommands(quitSignal(), gracePeriod),
    		Quiet: !testing.Verbose(),
    	}
    
    	t.Run("README", func(t *testing.T) {
    		checkScriptReadme(t, engine, env)
    	})
    
    	files, err := filepath.Glob("testdata/script/*.txt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. pkg/volume/testing/testing.go

    	Output string
    	// ReturnCode is the exit code for the command. Setting this to non-zero will
    	// cause the command to return an error with this exit code set.
    	ReturnCode int
    }
    
    // ScriptCommands configures fe, the FakeExec, to have a pre-configured list of
    // commands to expect. Calling more commands using fe than those scripted will
    // result in a panic. By default, the fe does not enforce command argument checking
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top