1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Fix checkExecutable() not working correctly on Windows.

This commit is contained in:
Simo Kinnunen 2017-09-06 16:31:36 +09:00
parent a4c82d8d29
commit e2a0447def
4 changed files with 10 additions and 3 deletions

View file

@ -6,6 +6,10 @@
- The network column in the device list is now based on a value that gets updated in real time. The format of the column has changed slightly due to this change.
### Fixes
- Fixed an issue on Windows where our device binaries may have failed to install due to an `Out of fallback locations` error caused by a faulty mode check. Thanks @iqianxing!
## 3.1.0 (2017-08-31)
### Enhancements

View file

@ -94,7 +94,8 @@ module.exports = syrup.serial()
return adb.stat(options.serial, res.dest)
.timeout(5000)
.then(function(stats) {
return (stats.mode & fs.constants.S_IXUSR) === fs.constants.S_IXUSR
// Can't use fs.constants.S_IXUSR due to differences on Windows.
return (stats.mode & 0x40) === 0x40
})
}

View file

@ -63,7 +63,8 @@ module.exports = syrup.serial()
return adb.stat(options.serial, res.dest)
.timeout(5000)
.then(function(stats) {
return (stats.mode & fs.constants.S_IXUSR) === fs.constants.S_IXUSR
// Can't use fs.constants.S_IXUSR due to differences on Windows.
return (stats.mode & 0x40) === 0x40
})
}

View file

@ -62,7 +62,8 @@ module.exports = syrup.serial()
return adb.stat(options.serial, res.dest)
.timeout(5000)
.then(function(stats) {
return (stats.mode & fs.constants.S_IXUSR) === fs.constants.S_IXUSR
// Can't use fs.constants.S_IXUSR due to differences on Windows.
return (stats.mode & 0x40) === 0x40
})
}