summaryrefslogtreecommitdiff
path: root/odrefresh/odr_fs_utils_test.cc
AgeCommit message (Collapse)Author
2023-04-05Fix "readability-redundant-string-cstr" clang-tidy issues Stefano Cianciulli
Bug: 264654008 Test: m tidy-art Change-Id: Ic852d58f106187791fa3a0d31829654de41bcb2b
2021-07-05Don't delete everything in apexdata/com.android.art. Alan Stokes
Rather than deleting everything we now specifically delete the artifacts directory when validation fails or forcing compilation. This allows the pending directory, with CompOS artifacts, to be preserved and used as an alternative. As a slightly gratuitous bonus, delete the staging directory when we're done with it, rather than just its contents. Test: Manual, create pending directory, see it preserved. Test: atest --host art_odrefresh_tests Test: Presubmits Bug: 190166662 Change-Id: Ic6f0cb15eb22b3a235d9df90653c6e6d63ea80bc
2021-05-05Revert "odrefresh: re-enable OdrFsUtilsTest.GetUsedSpace" Nicolas Geoffray
This reverts commit 59d29bfeda798c9621515f59707af745d431763c. Bug: 186730164 Bug: 187252651 Reason for revert: Fails on ART bots Change-Id: Ib516da77a9e6d16c32405d4e6703bf10d63dc0f6
2021-05-04odrefresh: re-enable OdrFsUtilsTest.GetUsedSpace Orion Hodson
Use stat() in test for size in blocks rather than rounding up the written file size to integral number of 512-byte blocks. Bug: 186730164 Test: atest art_odrefresh_tests Test: atest --host art_odrefresh_tests Change-Id: Ic0b3421451f9f8049b30d11ec73761e6871034b8
2021-04-29odrefresh: temporarily disable OdrFsUtilsTest.GetUsedSpace Orion Hodson
Test is failing on the LUCI bots. Bug: 186730164 Test: atest --host art_odrefresh_tests Change-Id: Ia19533ca9256053bbcac577d4c16db2048730175
2021-04-28odr_fs_utils_test: drop bogus assertion Orion Hodson
The assertion quite reasonably failed on an angler. Bug: 169925964 Test: atest art_odrefresh_tests Change-Id: I97a9dac27dc92ff8bfa71aff007a4e761209c88a
2021-04-28odrefresh: move file-system utilities into odr_fs_utils.{h,cc} Orion Hodson
Preparation for metrics support which will use the same functionality. Add tests for odrefresh file-system utilities too. Bug: 160683548 Test: atest art_odrefresh_tests (cherry picked from commit dda82d2ed4d073866f3c3da3d88ad178261c62f4) Merged-In: I1da2f477f51b1d445bbee3b22a9c1fb268d25e80 Change-Id: If4b8cfdb9c68167aae07268b29140e1162af2293