Add a function to determine if we are running inside a podd (physical or CiaB) or outside as a subscriber/traditional vm.
Disable vsg tests applicable when running inside a pod setup
Change-Id: I2f71f99911ca371e9572ae15a7a9d7d4dd271fe3
diff --git a/src/test/utils/CordTestUtils.py b/src/test/utils/CordTestUtils.py
index 7621f13..35c6d0d 100644
--- a/src/test/utils/CordTestUtils.py
+++ b/src/test/utils/CordTestUtils.py
@@ -60,3 +60,7 @@
def get_controller():
controllers = get_controllers()
return controllers[0]
+
+def running_on_podd():
+ """If we are running on Ciab or inside a physical podd, key file would be set"""
+ return True if os.environ.get('SSH_KEY_FILE', None) else False