summaryrefslogtreecommitdiff
path: root/ambari-metrics/ambari-metrics-host-monitoring
diff options
context:
space:
mode:
Diffstat (limited to 'ambari-metrics/ambari-metrics-host-monitoring')
-rw-r--r--ambari-metrics/ambari-metrics-host-monitoring/src/test/python/unitTests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ambari-metrics/ambari-metrics-host-monitoring/src/test/python/unitTests.py b/ambari-metrics/ambari-metrics-host-monitoring/src/test/python/unitTests.py
index 73798cbf5f..3469de12be 100644
--- a/ambari-metrics/ambari-metrics-host-monitoring/src/test/python/unitTests.py
+++ b/ambari-metrics/ambari-metrics-host-monitoring/src/test/python/unitTests.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -39,7 +41,10 @@ def get_parent_path(base, directory_name):
base = os.path.dirname(base)
if base == "/":
return None
- done = True if os.path.split(base)[-1] == directory_name else False
+ if os.path.split(base)[-1] == directory_name:
+ done = True
+ else:
+ done = False
return base
def get_test_files(path, mask = None, recursive=True):