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:
parent
a4c82d8d29
commit
e2a0447def
4 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue