Skip to content

Commit 468481e

Browse files
authored
Merge pull request #32 from Sebitosh/fix-ruleid-displayed
Fix: unique ruleid-testid displayed for unit tests
2 parents 2bf51f8 + e635b52 commit 468481e

File tree

97 files changed

+12
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+12
-12
lines changed

README.md

Lines changed: 10 additions & 10 deletions

mrts/generate-rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def genrulefromtemplate(self, tpl, current_confdata):
368368
print("No testdata for TARGET")
369369
sys.exit(1)
370370
else:
371-
fname = self.current_confdata['testfile'].replace(".yaml", "") + "_%d.yaml" % (self.currid)
371+
fname = "%d_" % (self.currid) + self.current_confdata['testfile'].replace(".yaml", "") + ".yaml"
372372
self.writetest(fname, self.testcontent)
373373
print("testfile written: %s" % (fname))
374374
self.testcontent = {}
@@ -534,4 +534,4 @@ def incrementing_substitution(match):
534534
gen = RuleGenerator(flist, args.expdir, args.testdir)
535535

536536

537-
sys.exit(retval)
537+
sys.exit(retval)

0 commit comments

Comments
 (0)