Skip to content

Commit

Permalink
fix: julia script
Browse files Browse the repository at this point in the history
  • Loading branch information
mikirov committed Jul 27, 2023
1 parent aca47af commit 2f3eb85
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/runTests.jl
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Define the hosts, on which the tests will be run
hosts::Vector{String} = ["polkadot", "kagome"]
hosts = ["polkadot", "kagome"]

# Add locally built or downloaded adapters, testers, and hosts to PATH
ENV["PATH"] *= ":$(pwd())/bin"

# Tests directory
tests_dir::String = get(ENV ,"ZN_TESTS", "./tests")
tests_dir = get(ENV ,"ZN_TESTS", "./tests")

# Test output path
tests_output::String = get(ENV, "ZN_TEST_OUTPUT", "./tests_output")
tests_output = get(ENV, "ZN_TEST_OUTPUT", "./tests_output")

# Filter out the non-`.zndsl` files, just to be safe
tests::Vector{String} = filter(file -> endswith(file, ".zndsl"), readdir(tests_dir))
tests = filter(file -> endswith(file, ".zndsl"), readdir(tests_dir))

# Arrays to accumulate passed and failed test names
passed_tests::Vector{String} = []
failed_tests::Vector{String} = []
passed_tests = []
failed_tests = []

# Helper for piping both outputs
function redirect_stdout_stderr(dofunc, outfile, errfile)
Expand All @@ -31,7 +31,7 @@ function redirect_stdout_stderr(dofunc, outfile, errfile)
end

# For each host ...
for host::String in hosts
for host in hosts
withenv("ZOMBIENET_DEFAULT_START_COMMAND" => host) do
# ... run each test
for test::String in tests
Expand Down

0 comments on commit 2f3eb85

Please sign in to comment.