GoogleTradefedSandbox

public class GoogleTradefedSandbox
extends TradefedSandbox

java.lang.Object
com.android.tradefed.sandbox.TradefedSandbox
  com.google.android.tradefed.sandbox.GoogleTradefedSandbox


ラボ インフラストラクチャで使用される TradefedSandbox の内部特殊化。これにより、ビルドに関連付けられた適切なバージョンのダウンロードの必要性に対応します。いつか AOSP API を使用してビルドをダウンロードできるようになれば、これを AOSP に移行できる可能性があります。

概要

パブリック コンストラクタ

GoogleTradefedSandbox()

パブリック メソッド

String createClasspath(File workingDir)

Google Tradefed Sandbox は、作業ディレクトリ内の jar のみを使用します。

IConfiguration createThinLauncherConfig(String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig)

メイン実行から切断された特別なモード: 親に構成が存在しない場合、シン ランチャーにフォールバックします。ここでは、現在判明している情報を使用してサンドボックスを設定し、作業ディレクトリにデータを入力して、バージョン管理されたディレクトリに構成を完全に作成します。

Map<String, List<String>> discoverTests(IInvocationContext context, IConfiguration nonVersionedConfig, ITestLogger logger)
IFolderBuildInfo fetchSandboxExtraArtifacts(IInvocationContext context, IConfiguration nonVersionedConfig, String[] args)
File getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, ITestLogger logger, String[] args)
void tearDown()

変更された可能性のある状態、ファイル、環境をクリーンアップします。

保護されたメソッド

File dumpGlobalConfig(IConfiguration config, Set<String> exclusionPatterns)

一部のオブジェクトからフィルタされたグローバル構成をダンプします。

File prepareContext(IInvocationContext context, IConfiguration config)

IInvocationContext を準備してシリアル化します。

パブリック コンストラクタ

GoogleTradefedSandbox

public GoogleTradefedSandbox ()

パブリック メソッド

createClasspath

public String createClasspath (File workingDir)

Google Tradefed Sandbox は、作業ディレクトリ内の jar のみを使用します。

パラメータ
workingDir File: サンドボックスの現在の作業ディレクトリ。

戻り値
String 使用するクラスパス。

例外
ConfigurationException

createThinLauncherConfig

public IConfiguration createThinLauncherConfig (String[] args, 
                IKeyStoreClient keyStoreClient, 
                IRunUtil runUtil, 
                File globalConfig)

メイン実行から切断された特別なモード: 親に構成が存在しない場合、シン ランチャーにフォールバックします。ここでは、現在判明している情報を使用してサンドボックスを設定し、作業ディレクトリにデータを入力して、バージョン管理されたディレクトリに構成を完全に作成します。

パラメータ
args String: 元のコマンドライン引数。

keyStoreClient IKeyStoreClient: 構成の作成に使用する現在のキーストア クライアント。

runUtil IRunUtil: ホストコマンドを実行する現在の IRunUtil

globalConfig File: TF のサブプロセスを実行するために使用するグローバル構成。

戻り値
IConfiguration NON_VERSIONED オブジェクトの TF の構成 XML を指すファイル。シン ランチャー構成を作成できなかった場合は null を返します。

discoverTests

public Map<String, List<String>> discoverTests (IInvocationContext context, 
                IConfiguration nonVersionedConfig, 
                ITestLogger logger)

パラメータ
context IInvocationContext

nonVersionedConfig IConfiguration

logger ITestLogger

戻り値
Map<String, List<String>>

fetchSandboxExtraArtifacts

public IFolderBuildInfo fetchSandboxExtraArtifacts (IInvocationContext context, 
                IConfiguration nonVersionedConfig, 
                String[] args)

パラメータ
context IInvocationContext

nonVersionedConfig IConfiguration

args String

戻り値
IFolderBuildInfo

例外
BuildRetrievalError
ConfigurationException
IOException

getTradefedSandboxEnvironment

public File getTradefedSandboxEnvironment (IInvocationContext context, 
                IConfiguration nonVersionedConfig, 
                ITestLogger logger, 
                String[] args)

パラメータ
context IInvocationContext

nonVersionedConfig IConfiguration

logger ITestLogger

args String

戻り値
File

例外
Exception

tearDown

public void tearDown ()

変更された可能性のある状態、ファイル、環境をクリーンアップします。

保護されたメソッド

dumpGlobalConfig

protected File dumpGlobalConfig (IConfiguration config, 
                Set<String> exclusionPatterns)

一部のオブジェクトからフィルタされたグローバル構成をダンプします。

パラメータ
config IConfiguration

exclusionPatterns Set

戻り値
File

例外
ConfigurationException
IOException

prepareContext

protected File prepareContext (IInvocationContext context, 
                IConfiguration config)

IInvocationContext を準備してシリアル化します。

パラメータ
context IInvocationContext: 準備する IInvocationContext

config IConfiguration: サンドボックスの IConfiguration

戻り値
File シリアル化された IInvocationContext

例外
IOException