Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.common Namespace Reference

Classes

class  DirectoryFinder
 

Functions

 os_name ()
 
 RunCommandPropagateErr (cmd, stdout_has_errors=False, exit_status_on_error=None)
 
 GetBooleanGnArg (arg_name, build_dir, verbose=False)
 
 PrintWithTime (s)
 
 PrintErr (s)
 

Function Documentation

◆ GetBooleanGnArg()

testing.tools.common.GetBooleanGnArg ( arg_name,
build_dir,
verbose = False )
Extract the value of a boolean flag in args.gn

Definition at line 102 of file common.py.

References decode, and print().

+ Here is the call graph for this function:

◆ os_name()

testing.tools.common.os_name ( )

Definition at line 16 of file common.py.

◆ PrintErr()

testing.tools.common.PrintErr ( s)
Prints s to stderr.

Definition at line 122 of file common.py.

References print().

+ Here is the call graph for this function:

◆ PrintWithTime()

testing.tools.common.PrintWithTime ( s)
Prints s prepended by a timestamp.

Definition at line 117 of file common.py.

References print().

+ Here is the call graph for this function:

◆ RunCommandPropagateErr()

testing.tools.common.RunCommandPropagateErr ( cmd,
stdout_has_errors = False,
exit_status_on_error = None )
Run a command as a subprocess.

Errors in that subprocess are printed out if it returns an error exit code.

Args:
  cmd: Command to run as a list of strings.
  stdout_has_errors: Whether to print stdout instead of stderr on an error
      exit.
  exit_status_on_error: If specified, upon an error in the subprocess the
      caller script exits immediately with the given status.

Definition at line 26 of file common.py.