Fixes tests.
This commit is contained in:
parent
2f45eab060
commit
4d7b3081a8
2 changed files with 5 additions and 2 deletions
|
|
@ -372,8 +372,10 @@ proc isNimScript*(nf: string, options: Options): bool =
|
|||
result = readPackageInfo(nf, options).isNimScript
|
||||
|
||||
proc toFullInfo*(pkg: PackageInfo, options: Options): PackageInfo =
|
||||
assert(pkg.isMinimal, "Redundant call?")
|
||||
return getPkgInfoFromFile(pkg.mypath, options)
|
||||
if pkg.isMinimal:
|
||||
return getPkgInfoFromFile(pkg.mypath, options)
|
||||
else:
|
||||
return pkg
|
||||
|
||||
when isMainModule:
|
||||
validatePackageName("foo_bar")
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ proc execNimble(args: varargs[string]): tuple[output: string, exitCode: int] =
|
|||
quotedArgs = quoted_args.map((x: string) => ("\"" & x & "\""))
|
||||
|
||||
result = execCmdEx(quotedArgs.join(" "))
|
||||
#echo(result.output)
|
||||
|
||||
proc processOutput(output: string): seq[string] =
|
||||
output.strip.splitLines().filter((x: string) => (x.len > 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue