mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Fix checkExecutable() not working correctly on Windows.
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user