diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-01-05 23:50:41 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2019-02-13 09:40:05 +0100 |
commit | 8a42641a3e1c24709ad36d34119c59d19dd2a0eb (patch) | |
tree | 505a8b340f9896d75127290c346bb39877a8f4f4 /lib/efi_selftest/efi_selftest_snp.c | |
parent | 452257a34a2e8d06af37ad30c7dd742920ff6dc5 (diff) | |
download | u-boot-8a42641a3e1c24709ad36d34119c59d19dd2a0eb.tar.gz |
efi_selftest: SNP unit test on sandbox
Running the simple network protocol test on the sandbox requires setting
the environment variable ethact to a network interface connected to a DHCP
server and ethrotate to 'no'. So let's make it an on-request test on the
sandbox (selectable by setting environment variable efi_selftest).
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_selftest/efi_selftest_snp.c')
-rw-r--r-- | lib/efi_selftest/efi_selftest_snp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_selftest_snp.c b/lib/efi_selftest/efi_selftest_snp.c index e10a34ba64..f1e23c4921 100644 --- a/lib/efi_selftest/efi_selftest_snp.c +++ b/lib/efi_selftest/efi_selftest_snp.c @@ -427,4 +427,12 @@ EFI_UNIT_TEST(snp) = { .setup = setup, .execute = execute, .teardown = teardown, +#ifdef CONFIG_SANDBOX + /* + * Running this test on the sandbox requires setting environment + * variable ethact to a network interface connected to a DHCP server and + * ethrotate to 'no'. + */ + .on_request = true, +#endif }; |