• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / mozregression / 10834282688

12 Sep 2024 03:47PM CUT coverage: 89.192%. First build
10834282688

Pull #1812

github

web-flow
Merge 4648153cb into c39e24675
Pull Request #1812: cli, fetch_configs, gui: use arch to construct build regex (bug 1917418)

35 of 47 new or added lines in 2 files covered. (74.47%)

2517 of 2822 relevant lines covered (89.19%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

53.85
/mozregression/tempdir.py
1
from __future__ import absolute_import
1✔
2

3
import os
1✔
4
import tempfile
1✔
5

6

7
def safe_mkdtemp():
1✔
8
    """
9
    Creates a temporary directory using mkdtemp, but makes sure that the
10
    returned directory is the full path on windows (see:
11
    https://bugzilla.mozilla.org/show_bug.cgi?id=1385928)
12
    """
13
    tempdir = tempfile.mkdtemp()
1✔
14
    if os.name == "nt":
1✔
15
        from ctypes import create_unicode_buffer, windll
×
16

17
        BUFFER_SIZE = 500
×
18
        buffer = create_unicode_buffer(BUFFER_SIZE)
×
19
        get_long_path_name = windll.kernel32.GetLongPathNameW
×
20
        get_long_path_name(str(tempdir), buffer, BUFFER_SIZE)
×
21
        return buffer.value
×
22
    else:
23
        return tempdir
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc