From 64ccd6df1cd554ef92c3bf46e0dde4b80bd011ef Mon Sep 17 00:00:00 2001 From: Andrew Dennison Date: Fri, 25 Aug 2023 15:25:37 +1000 Subject: [PATCH] test_i2c: allow unit test to run directly --- test/test_i2c.py | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 test/test_i2c.py diff --git a/test/test_i2c.py b/test/test_i2c.py old mode 100644 new mode 100755 index a1865dd2a..6962789f4 --- a/test/test_i2c.py +++ b/test/test_i2c.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # # This file is part of MiSoC and has been adapted/modified for Litex. # @@ -130,3 +131,6 @@ class TestI2C(unittest.TestCase): yield from wait_idle() run_simulation(dut, check(), special_overrides={Tristate: _MockTristate}, vcd_name="i2c.vcd") + +if __name__ == "__main__": + unittest.main()