Tests: Auto-skip when not in root repo
This commit is contained in:
parent
269476df6e
commit
21dbdbf69d
|
|
@ -2674,6 +2674,11 @@ class VlTest:
|
|||
regexp=r'.*',
|
||||
lineno_adjust=-9999, #
|
||||
lines=None) -> None: #'#, #-#'
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
self.skip("Not in a git repository")
|
||||
return
|
||||
|
||||
temp_fn = out_filename
|
||||
temp_fn = re.sub(r'.*/', '', temp_fn)
|
||||
temp_fn = self.obj_dir + "/" + temp_fn
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('simulator')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.compile(verilator_flags2=['--assert'],
|
||||
nc_flags2=['+assert'],
|
||||
vcs_flags2=['-assert svaext'],
|
||||
|
|
|
|||
|
|
@ -12,9 +12,6 @@ import vltest_bootstrap
|
|||
test.scenarios('linter')
|
||||
test.top_filename = 't/t_event_control_star_never.v'
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(verilator_flags2=['--timing'], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.extract(in_filename=test.top_filename,
|
||||
|
|
|
|||
|
|
@ -12,9 +12,6 @@ import vltest_bootstrap
|
|||
test.scenarios('vlt')
|
||||
test.top_filename = "t/t_lint_assigneqexpr.v"
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(verilator_flags2=['-Wall -Wno-DECLFILENAME'],
|
||||
fails=True,
|
||||
expect_filename=test.golden_filename)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('vlt')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.extract(in_filename=test.top_filename,
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.extract(in_filename=test.top_filename,
|
||||
|
|
|
|||
|
|
@ -12,9 +12,6 @@ import vltest_bootstrap
|
|||
test.scenarios('linter')
|
||||
test.top_filename = 't/t_lint_paramnodefault.v'
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.extract(in_filename=test.top_filename,
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.extract(in_filename=test.top_filename,
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('vlt')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(verilator_flags2=['-Wall -Wno-DECLFILENAME'],
|
||||
fails=True,
|
||||
expect_filename=test.golden_filename)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('vlt')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(verilator_flags2=["--no-timing"], fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.extract(in_filename=test.top_filename,
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(verilator_flags2=["--lint-only"],
|
||||
fails=test.vlt_all,
|
||||
expect_filename=test.golden_filename)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(fails=True, expect_filename=test.golden_filename)
|
||||
|
||||
test.extract(in_filename=test.top_filename,
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import vltest_bootstrap
|
|||
|
||||
test.scenarios('linter')
|
||||
|
||||
if not os.path.exists(test.root + "/.git"):
|
||||
test.skip("Not in a git repository")
|
||||
|
||||
test.lint(verilator_flags2=["--lint-only -Wwarn-VARHIDDEN"],
|
||||
fails=test.vlt_all,
|
||||
expect_filename=test.golden_filename)
|
||||
|
|
|
|||
Loading…
Reference in New Issue