shell

package
v0.0.0-...-f5fd88d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Overview

Package shell provides shell helpers and shell based suites

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner is shell runner.

func (*Runner) Dir

func (r *Runner) Dir() string

Dir returns the directory where current runner instance is located

func (*Runner) Run

func (r *Runner) Run(cmd string)

Run runs cmd, logs stdin, stdout, stderr Tries to run cmd several times, until it succeeds or timeout passes.

Fails the test if the command can't be run successfully.

type Suite

type Suite struct {
	suite.Suite
}

Suite is testify suite that provides a shell helper functions for each test.

func (*Suite) Runner

func (s *Suite) Runner(dir string, env ...string) *Runner

Runner creates runner and sets the passed dir and envs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL