test_core: Add comment to clarify valgrind invocation

Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
This commit is contained in:
Tushar Gohad 2014-06-25 11:17:13 -07:00
parent 7655640718
commit 5fadc482b6
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ class TestCore(unittest.TestCase):
print('failed')
# Invoke this script as "python test_core_valgrind.py"
# for the "valgrind" variant
# (test_core_valgrind.py is a symlink to test_core.py)
if __name__ == "__main__":
if '_valgrind' in sys.argv[0]:
if (0 != os.system("which valgrind")):