cleaned up texttest_rig.py

This commit is contained in:
Ralf Comtesse committed 2025-09-26 20:06:13 +02:00
1 parent 7aae423d53
commit 3083e909b6
4 files changed
+75 -7

No files matched your search

@@ -1,8 +1,8 @@
package com.gildedrose
object TexttestFixture {
@main
def main(args: String*): Unit = {
def main(args: Array[String]): Unit = {
println("OMGHAI!")
val items = Array[Item](
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env python
"""
This script uses Gradle to execute the TexttestFixture.
It is designed to be used by TextTest and specified in the file 'texttests/config.gr' in this repo.
It is more convenient for TextTest to use since Gradle needs
several arguments in addition to the one the TextTest fixture needs.
"""
import os
import subprocess
import sys
args = " ".join(sys.argv[1:])
TEXTTEST_HOME = os.environ.get("TEXTTEST_HOME", os.getcwd())
subprocess.run(f"""(cd {TEXTTEST_HOME}/scala/; sbt run "Test / runMain com.gildedrose.TexttestFixture {args}") """, shell=True)