mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Later Android versions seem to be asking for verification when removing files.
This commit is contained in:
parent
89f2f7d39b
commit
f01dd4374a
3 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ module.exports = syrup.serial()
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeResource(res) {
|
function removeResource(res) {
|
||||||
return adb.shell(options.serial, ['rm', res.dest])
|
return adb.shell(options.serial, ['rm', '-f', res.dest])
|
||||||
.timeout(10000)
|
.timeout(10000)
|
||||||
.then(function(out) {
|
.then(function(out) {
|
||||||
return streamutil.readAll(out)
|
return streamutil.readAll(out)
|
||||||
|
|
|
@ -36,7 +36,7 @@ module.exports = syrup.serial()
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeResource(res) {
|
function removeResource(res) {
|
||||||
return adb.shell(options.serial, ['rm', res.dest])
|
return adb.shell(options.serial, ['rm', '-f', res.dest])
|
||||||
.timeout(10000)
|
.timeout(10000)
|
||||||
.then(function(out) {
|
.then(function(out) {
|
||||||
return streamutil.readAll(out)
|
return streamutil.readAll(out)
|
||||||
|
|
|
@ -35,7 +35,7 @@ module.exports = syrup.serial()
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeResource(res) {
|
function removeResource(res) {
|
||||||
return adb.shell(options.serial, ['rm', res.dest])
|
return adb.shell(options.serial, ['rm', '-f', res.dest])
|
||||||
.timeout(10000)
|
.timeout(10000)
|
||||||
.then(function(out) {
|
.then(function(out) {
|
||||||
return streamutil.readAll(out)
|
return streamutil.readAll(out)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue