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

@ -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
})
}