65598582f5
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=179
30 lines
829 B
Diff
30 lines
829 B
Diff
From 4a63d9226a426f4734ff6906b33da36671c4e4e4 Mon Sep 17 00:00:00 2001
|
|
From: Jochen Breuer <jbreuer@suse.de>
|
|
Date: Fri, 20 Mar 2020 13:58:54 +0100
|
|
Subject: [PATCH] Re-adding function to test for root
|
|
|
|
---
|
|
tests/unit/modules/test_rpm_lowpkg.py | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/tests/unit/modules/test_rpm_lowpkg.py b/tests/unit/modules/test_rpm_lowpkg.py
|
|
index b41e8daf17..ec9ecd40cb 100644
|
|
--- a/tests/unit/modules/test_rpm_lowpkg.py
|
|
+++ b/tests/unit/modules/test_rpm_lowpkg.py
|
|
@@ -14,6 +14,11 @@ def _called_with_root(mock):
|
|
return cmd.startswith("rpm --root /")
|
|
|
|
|
|
+def _called_with_root(mock):
|
|
+ cmd = ' '.join(mock.call_args[0][0])
|
|
+ return cmd.startswith('rpm --root /')
|
|
+
|
|
+
|
|
class RpmTestCase(TestCase, LoaderModuleMockMixin):
|
|
"""
|
|
Test cases for salt.modules.rpm
|
|
--
|
|
2.29.2
|
|
|
|
|