From 3a218e9d5911cdba0eb2f857b765c8bad5eea9cb Mon Sep 17 00:00:00 2001 From: Mike Barry Date: Thu, 30 Nov 2023 21:15:38 -0500 Subject: [PATCH] more debug --- .../planetiler/experimental/lua/LuaValidatorTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/planetiler-experimental/src/test/java/com/onthegomap/planetiler/experimental/lua/LuaValidatorTest.java b/planetiler-experimental/src/test/java/com/onthegomap/planetiler/experimental/lua/LuaValidatorTest.java index cfaab1de74..95f96a64bc 100644 --- a/planetiler-experimental/src/test/java/com/onthegomap/planetiler/experimental/lua/LuaValidatorTest.java +++ b/planetiler-experimental/src/test/java/com/onthegomap/planetiler/experimental/lua/LuaValidatorTest.java @@ -40,11 +40,11 @@ private Result validate(String schema, String spec) throws IOException { } Path schemaPath = tmpDir.resolve("schema.lua"); Path specPath = tmpDir.resolve("spec.yml"); - System.err - .println("tmpdir: " + tmpDir + " schema: " + schemaPath + " spec: " + specPath); // also exercise the cli writer and return what it would have printed to stdout - var cliOutput = validateCli(Files.writeString(schemaPath, - schema + "\nplanetiler.examples= '" + Files.writeString(specPath, spec) + "'")); + String script = schema + "\nplanetiler.examples= '" + Files.writeString(specPath, spec) + "'"; + System.err + .println("tmpdir: " + tmpDir + " schema: " + schemaPath + " spec: " + specPath + " script:\n" + script); + var cliOutput = validateCli(Files.writeString(schemaPath, script)); return new Result(result, cliOutput); }