mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
Add pyglue for Rust for disabling tests
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
from samba.tests import TestCase, BlackboxProcessError
|
||||
import os
|
||||
from subprocess import Popen, PIPE
|
||||
from samba import is_rust_built
|
||||
|
||||
|
||||
class RustCargoTests(TestCase):
|
||||
@@ -65,6 +66,9 @@ class RustCargoTests(TestCase):
|
||||
msg)
|
||||
|
||||
def test_rust(self):
|
||||
if not is_rust_built():
|
||||
self.skipTest('Cannot test Samba Rust if not built')
|
||||
|
||||
crates = []
|
||||
for root, dirs, files in os.walk(self.rust_dir):
|
||||
for file in files:
|
||||
|
||||
Reference in New Issue
Block a user