summaryrefslogtreecommitdiff
path: root/tools/regression_tester.py
diff options
context:
space:
mode:
authorRavi Shekhar Jethani <ravishekar.jethani@nttdata.com>2015-11-18 05:45:30 -0800
committerRavi Shekhar Jethani <ravishekar.jethani@nttdata.com>2015-11-18 23:45:28 -0800
commitb93d2144429d4a6769701e1c3d415f156491f4ca (patch)
tree79eae941c0b461d1226328c0aa8cf8be29bdfdb5 /tools/regression_tester.py
parent201090b0bcb4080cebab54043bfdad59f4e363f2 (diff)
downloadnova-b93d2144429d4a6769701e1c3d415f156491f4ca.tar.gz
Simplified boolean variable check
Currently 'test_list' variable is being checked for empty list like 'if test_list == []:'. The more standard approach is like 'if not test_list:'. TrivialFix Change-Id: I0b389c11b992c93529b305b1ebce6b181f9a9a30
Diffstat (limited to 'tools/regression_tester.py')
-rwxr-xr-xtools/regression_tester.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression_tester.py b/tools/regression_tester.py
index 876184fdbd..fb7694729c 100755
--- a/tools/regression_tester.py
+++ b/tools/regression_tester.py
@@ -78,7 +78,7 @@ def main():
for test in tests:
test_list.append(string.replace(test[0:-3], '/', '.'))
- if test_list == []:
+ if not test_list:
test_works = False
expect_failure = ""
else: