Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions ptf/utest/TemplateTest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
from BasicTest import BasicMockedTest
from meta.sai_adapter import *
# Try to import from local build folder
# If cannot import then try to import from global folder
try:
from meta.sai_adapter import *
except ImportError:
from sai_thrift.sai_adapter import *
from MockClient import MockSuccessClient
import unittest

Expand Down Expand Up @@ -47,7 +52,3 @@ def check_file_contains(self, file, content):
if content in line:
return True
return False


if __name__ == '__main__':
unittest.main()