@@ -19,7 +19,7 @@ import { outputForInput } from "./utils.ts";
1919import { unzip } from "../src/core/zip.ts" ;
2020import { dirAndStem , safeRemoveSync , which } from "../src/core/path.ts" ;
2121import { isWindows } from "../src/deno_ral/platform.ts" ;
22- import { execProcess } from "../src/core/process.ts" ;
22+ import { execProcess , ExecProcessOptions } from "../src/core/process.ts" ;
2323import { canonicalizeSnapshot , checkSnapshot } from "./verify-snapshot.ts" ;
2424
2525export const withDocxContent = async < T > (
@@ -978,9 +978,10 @@ export const ensureXmlValidatesWithXsd = (
978978 name : "Validating XML" ,
979979 verify : async ( _output : ExecuteOutput [ ] ) => {
980980 if ( ! isWindows ) {
981- const cmd = [ "xmllint" , "--noout" , "--valid" , file , "--path" , xsdPath ] ;
982- const runOptions : Deno . RunOptions = {
983- cmd,
981+ const args = [ "--noout" , "--valid" , file , "--path" , xsdPath ] ;
982+ const runOptions : ExecProcessOptions = {
983+ cmd : "xmllint" ,
984+ args,
984985 stderr : "piped" ,
985986 stdout : "piped" ,
986987 } ;
@@ -1006,7 +1007,8 @@ export const ensureMECAValidates = (
10061007 const hasMeca = await which ( "meca" ) ;
10071008 if ( hasMeca ) {
10081009 const result = await execProcess ( {
1009- cmd : [ "meca" , "validate" , mecaFile ] ,
1010+ cmd : "meca" ,
1011+ args : [ "validate" , mecaFile ] ,
10101012 stderr : "piped" ,
10111013 stdout : "piped" ,
10121014 } ) ;
0 commit comments