mirror of https://github.com/mongodb/mongo
SERVER-115536 Skip tests for GDBDumper if not run on linux (#45284)
GitOrigin-RevId: 1fafc55b0f38d6d2f9c54bd09c8c39d24fc978e3
This commit is contained in:
parent
f80ba058ab
commit
ba84a4c0a6
|
|
@ -1,6 +1,7 @@
|
||||||
"""Unit tests for the buildscripts.resmokelib.hang_analyzer.dumper package"""
|
"""Unit tests for the buildscripts.resmokelib.hang_analyzer.dumper package"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import MagicMock, Mock, patch
|
from unittest.mock import MagicMock, Mock, patch
|
||||||
|
|
@ -413,6 +414,7 @@ class TestPIDParsing(unittest.TestCase):
|
||||||
self.assertEqual(result, set())
|
self.assertEqual(result, set())
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipUnless(platform.system() == "Linux", "GDBDumper is only for linux.")
|
||||||
class TestBinaryParsing(unittest.TestCase):
|
class TestBinaryParsing(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.logger = Mock()
|
self.logger = Mock()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue