mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Remove the newlines from the tokens returned by AliveTestReturnToken. Add a special check for cygwin perl which has a chomp that does not properly handle dos-newlines.
This commit is contained in:
parent
166a608d62
commit
b514f0e0cf
@ -22,7 +22,7 @@ use File::Path; # for rmtree();
|
||||
use Config; # for $Config{sig_name} and $Config{sig_num}
|
||||
use File::Find ();
|
||||
|
||||
$::UtilsVersion = '$Revision: 1.182 $ ';
|
||||
$::UtilsVersion = '$Revision: 1.183 $ ';
|
||||
|
||||
package TinderUtils;
|
||||
|
||||
@ -1675,6 +1675,8 @@ sub AliveTestReturnToken {
|
||||
# Look for and return token
|
||||
if ($status) {
|
||||
$rv = extract_token_from_file($binary_log, $token, $delimiter);
|
||||
chomp($rv);
|
||||
chop($rv) if ($^O eq 'cygwin'); # cygwin perl doesn't chomp dos-newlinesproperly so use chop.
|
||||
if ($rv) {
|
||||
print "AliveTestReturnToken: token value = $rv\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user