How to use the sos.utils.env.reset function in sos

To help you get started, we’ve selected a few sos examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vatlab / sos / test / test_python3_actions.py View on Github external
def setUp(self):
        env.reset()
        self.temp_files = []
github vatlab / sos / test / R / test_R_actions.py View on Github external
def setUp(self):
        env.reset()
        self.temp_files = []
github vatlab / sos / test / test_bash_actions.py View on Github external
def setUp(self):
        env.reset()
        self.temp_files = []
github vatlab / sos / test / test_python2_actions.py View on Github external
def setUp(self):
        env.reset()
        self.temp_files = []
github vatlab / sos / test / PBS / test_pbs_queue.py View on Github external
def setUp(self):
        env.reset()
        #self.resetDir('~/.sos')
        self.temp_files = []
        Host.reset()
        # remove .status file left by failed workflows.
        subprocess.call('sos purge', shell=True)
github vatlab / sos / test / test_docker_actions.py View on Github external
def setUp(self):
        self.olddir = os.getcwd()
        try:
            # this only works with nose, but is also
            # only needed by nose
            os.chdir(os.path.dirname(__file__))
        except Exception:
            pass
        env.reset()
        self.temp_files = []
github vatlab / sos / test / test_python3_target.py View on Github external
def setUp(self):
        env.reset()
        self.temp_files = []
github vatlab / sos / test / test_execute.py View on Github external
def setUp(self):
        env.reset()
        subprocess.call('sos remove -s', shell=True)
        # self.resetDir('~/.sos')
        self.temp_files = []
github vatlab / sos / test / test_matlab_action.py View on Github external
def setUp(self):
        env.reset()
        self.temp_files = []
github vatlab / sos / test / test_actions.py View on Github external
def setUp(self):
        env.reset()
        self.temp_files = []