security/generate_certdata.py
author Kershaw Chang <kershaw@mozilla.com>
Wed, 05 Sep 2018 18:24:51 +0000
changeset 435003 8db4f905ae7af3cc59ff0832b4bac21edb810f09
parent 421612 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
permissions -rw-r--r--
Bug 1488441 - Extend cookie's expiring time from 1s to 3s r=jdm The fail log shows that the cookie's expiring time is too short(only 1s). The cookie could be already expired. A simple solution in this patch is just extending the expiring time to 3s. Differential Revision: https://phabricator.services.mozilla.com/D5034

#!/usr/bin/env python
#
# This exists to paper over differences between gyp's `action` definitions
# and moz.build `GENERATED_FILES` semantics.

import buildconfig
import os
import subprocess


def main(output, *inputs):
    env = dict(os.environ)
    env['PERL'] = str(buildconfig.substs['PERL'])
    output.write(subprocess.check_output([buildconfig.substs['PYTHON'],
                                          inputs[0], inputs[2]], env=env))
    return None