diff options
author | Erwin Jansen <jansene@google.com> | 2017-07-18 14:22:42 -0700 |
---|---|---|
committer | Erwin Jansen <jansene@google.com> | 2017-07-20 19:38:56 +0000 |
commit | b7c25d7f0aaa28af05f63e0faec4174bc7a3b2f8 (patch) | |
tree | 3b5316aff92b803a7bab8305ee9c45da137c708b | |
parent | c3ccab73bef22a9a5037e6f277569760f2e9b68c (diff) | |
download | extras-b7c25d7f0aaa28af05f63e0faec4174bc7a3b2f8.tar.gz |
Ensure pstore has data before running CtsKernelConfigTestCases.
Upon first boot it is possible that a device has nothing in its pstore.
We now inject messages in the pstore and reboot before running the test.
Bug: b/37627779
Test: run cts -m CtsKernelConfigTestCases
Change-Id: I2ac1c2ce331054b408cb79136e076f31061d5a9a
-rw-r--r-- | tests/kernel.config/AndroidTest.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/kernel.config/AndroidTest.xml b/tests/kernel.config/AndroidTest.xml index 1e50e0a6..df7aa49b 100644 --- a/tests/kernel.config/AndroidTest.xml +++ b/tests/kernel.config/AndroidTest.xml @@ -23,5 +23,8 @@ <test class="com.android.tradefed.testtype.GTest" > <option name="native-test-device-path" value="/data/local/tmp" /> <option name="module-name" value="CtsKernelConfigTestCases" /> + <!-- Make sure there is some data in the pstore --> + <option name="before-test-cmd" value="echo HELLOWORLD >/dev/pmsg0" /> + <option name="reboot-before-test" value="true" /> </test> </configuration> |