etr  2.0
 All Classes Namespaces Files Functions Variables Groups Pages
Public Member Functions | Static Public Attributes | List of all members
etr.tools.fsisolation.FsIsolation Class Reference

Create isolated file system area for test execution. More...

Public Member Functions

def __init__
 
def setup
 Creates a temporary directory in /tmp and creates the following in that area: More...
 
def teardown
 Unmounts and deletes previously ceated temporary directories from setup. More...
 
def __init__
 
def setup
 Creates a temporary directory in /tmp and creates the following in that area: More...
 
def teardown
 Unmounts and deletes previously ceated temporary directories from setup. More...
 

Static Public Attributes

string workdir = ".workdir"
 
list env_blacklist = ["_", "SHLVL", "PWD"]
 

Detailed Description

Create isolated file system area for test execution.

Note
The interface looks like a plugin but it is not loaded as a plugin.

Constructor & Destructor Documentation

def etr.tools.fsisolation.FsIsolation.__init__ (   self,
  ctx 
)
def etr.tools.fsisolation.FsIsolation.__init__ (   self,
  ctx 
)

Member Function Documentation

def etr.tools.fsisolation.FsIsolation.setup (   self,
  ctx 
)

Creates a temporary directory in /tmp and creates the following in that area:

  • create workdir roots
  • mount $PREFIX to prefix with overlay fs
  • mount $DATAROOT to dataroot
  • If $PREFIX is loaded, also populate the ctx.env environment using lmod loader activation script such that any test runner will use the overlay FS.
def etr.tools.fsisolation.FsIsolation.setup (   self,
  ctx 
)

Creates a temporary directory in /tmp and creates the following in that area:

  • create workdir roots
  • mount $PREFIX to prefix with overlay fs
  • mount $DATAROOT to dataroot
  • If $PREFIX is loaded, also populate the ctx.env environment using lmod loader activation script such that any test runner will use the overlay FS.
def etr.tools.fsisolation.FsIsolation.teardown (   self,
  ctx 
)

Unmounts and deletes previously ceated temporary directories from setup.

def etr.tools.fsisolation.FsIsolation.teardown (   self,
  ctx 
)

Unmounts and deletes previously ceated temporary directories from setup.

Member Data Documentation

list etr.tools.fsisolation.FsIsolation.env_blacklist = ["_", "SHLVL", "PWD"]
static
string etr.tools.fsisolation.FsIsolation.workdir = ".workdir"
static

The documentation for this class was generated from the following files: