Skip to content

Commit

Permalink
Added the scripts_path
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshraghupathy committed Dec 12, 2024
1 parent 6b6b6b9 commit e44cd1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/process-reboot-cause_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ def load_module_from_source(module_name, path):

class TestProcessRebootCause(unittest.TestCase):
def setUp(self):
# Setup the path to the script under test
self.scripts_path = '/path/to/scripts'
# Setup the path
self.test_path = os.path.dirname(os.path.abspath(__file__))
self.modules_path = os.path.dirname(test_path)
self.scripts_path = os.path.join(modules_path, "scripts")
self.sys.path.insert(0, modules_path)
self.process_reboot_cause_path = os.path.join(self.scripts_path, 'process-reboot-cause.py')
self.process_reboot_cause = load_module_from_source('process_reboot_cause', self.process_reboot_cause_path)

Expand Down

0 comments on commit e44cd1f

Please sign in to comment.