Remove hyphens from the flow testcase generator folder name

So that it can be imported from the autogenerated query `gen.ql`
This commit is contained in:
Tony Torralba
2021-10-04 13:31:07 +02:00
parent 65a4f36cf8
commit 064aba810b
8 changed files with 1 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ with open(os.path.join(queryDir, "qlpack.yml"), "w") as f:
f.write("name: test-generation-query\nversion: 0.0.0\nlibraryPathDependencies: codeql/java-queries") f.write("name: test-generation-query\nversion: 0.0.0\nlibraryPathDependencies: codeql/java-queries")
with open(qlFile, "w") as f: with open(qlFile, "w") as f:
f.write( f.write(
"import java\nimport utils.GenerateFlowTestCase\n\nclass GenRow extends TargetSummaryModelCsv {\n\n\toverride predicate row(string r) {\n\t\tr = [\n") "import java\nimport utils.flowtestcasegenerator.GenerateFlowTestCase\n\nclass GenRow extends TargetSummaryModelCsv {\n\n\toverride predicate row(string r) {\n\t\tr = [\n")
f.write(",\n".join('\t\t\t"%s"' % spec.strip() for spec in specs)) f.write(",\n".join('\t\t\t"%s"' % spec.strip() for spec in specs))
f.write("\n\t\t]\n\t}\n}\n") f.write("\n\t\t]\n\t}\n}\n")