Bug P3 Add Hotlist Status UpdateNo update yet.Descriptionri...@google.com created issue #1Mar 18, 2021 02:35AM Please use github issue tracker instead, unless this is an internal google specific issue https://github.com/android/android-test/issues TestStorage.openOutputFile() subsequent writes to a file with "w" mode do not clear content properly The testservices contentprovider does not handle write requests correctly. echo "This is a line\n" > testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content read --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile The output is This is a line This is a line This is a line This is concerning because multiple writes to the same uri do not clear the old file contents. Issue summaryCommentsAll comments Oldest first ae...@google.com <ae...@google.com> #2Sep 14, 2023 06:24PMCould you attach a screenshot of how it looks ? Add comment Comment
Description
Please use github issue tracker instead, unless this is an internal google specific issuehttps://github.com/android/android-test/issues
TestStorage.openOutputFile() subsequent writes to a file with "w" mode do not clear content properly
The testservices contentprovider does not handle write requests correctly.
echo "This is a line\n" > testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content write --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile < testfile adb shell content read --user 10 --uri content://androidx.test.services.storage.outputfiles/neatfile
The output is This is a line This is a line This is a line
This is concerning because multiple writes to the same uri do not clear the old file contents.