efi_selftest: SNP unit test on sandbox
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 5 Jan 2019 22:50:41 +0000 (23:50 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 13 Feb 2019 08:40:05 +0000 (09:40 +0100)
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>
lib/efi_selftest/efi_selftest_snp.c

index e10a34ba6450c133292f5ccded2dcb6ef68ade75..f1e23c4921c0ae0ac386227921b39eb49b550977 100644 (file)
@@ -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
 };