summaryrefslogtreecommitdiff
path: root/tests/utils
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2020-06-23 07:41:25 -0700
committerWinson <chiuwinson@google.com>2020-06-25 10:19:51 -0700
commitdb6d1df7916da1cb000d8441b39e57b24c4f0893 (patch)
treefd92b9acf265bf0b7b6ffa615bde80a9cc2ff64d /tests/utils
parent06ba19ff4eac9cd4d178884bcb202015780dcdbc (diff)
Fix PackageManagerServiceHostTests disk usage
It seems adb shell stop/start has a bug with taking up disk space. For now, use a full reboot of the device for each test step. This will double the already extremely long test time, so the entire PackageManagerServiceHostTests module has been moved to postsubmit, except for tests annotated @Presubmit, of which there are none as of this change. Bug: 159540015 Bug: 159256824 Test: atest PackageManagerServiceHostTests Change-Id: I67da61cb02baa572fc298e6f617d6e53ec2c4724
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/hostutils/src/com/android/internal/util/test/SystemPreparer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils/hostutils/src/com/android/internal/util/test/SystemPreparer.java b/tests/utils/hostutils/src/com/android/internal/util/test/SystemPreparer.java
index 6bd6985f9675..f30c35aca8da 100644
--- a/tests/utils/hostutils/src/com/android/internal/util/test/SystemPreparer.java
+++ b/tests/utils/hostutils/src/com/android/internal/util/test/SystemPreparer.java
@@ -356,6 +356,9 @@ public class SystemPreparer extends ExternalResource {
/**
* Uses shell stop && start to "reboot" the device. May leave invalid state after each test.
* Whether this matters or not depends on what's being tested.
+ *
+ * TODO(b/159540015): There's a bug with this causing unnecessary disk space usage, which
+ * can eventually lead to an insufficient storage space error.
*/
START_STOP
}