benchbuild.utils.uchroot module¶
-
class
benchbuild.utils.uchroot.UchrootEC[source]¶ Bases:
enum.EnumAn enumeration.
-
MNT_DEV_FAILED= 253¶
-
MNT_FAILED= 255¶
-
MNT_PROC_FAILED= 254¶
-
MNT_PTS_FAILED= 251¶
-
MNT_SYS_FAILED= 252¶
-
-
benchbuild.utils.uchroot.clean_env(uchroot_cmd, varnames)[source]¶ Returns a uchroot cmd that runs inside a filtered environment.
-
benchbuild.utils.uchroot.env(mounts)[source]¶ Compute the environment of the change root for the user.
Parameters: mounts – The mountpoints of the current user. Returns: paths ld_libs
-
benchbuild.utils.uchroot.mounts(prefix, __mounts)[source]¶ Compute the mountpoints of the current user.
Parameters: - prefix – Define where the job was running if it ran on a cluster.
- mounts – All mounts the user currently uses in his file system.
Returns: mntpoints
-
benchbuild.utils.uchroot.no_args(**kwargs)[source]¶ Return the uchroot command without any customizations.
-
benchbuild.utils.uchroot.no_llvm(*args, uid=0, gid=0, **kwargs)[source]¶ Return a customizable uchroot command.
The command will be executed inside a uchroot environment.
Parameters: args – List of additional arguments for uchroot (typical: mounts) Returns: chroot_cmd
-
benchbuild.utils.uchroot.retry(pb_cmd, retries=0, max_retries=10, retcode=0, retry_retcodes=None)[source]¶