Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not play nice when run from a subshell #43

Open
sawcordwell opened this issue Mar 29, 2015 · 0 comments
Open

Does not play nice when run from a subshell #43

sawcordwell opened this issue Mar 29, 2015 · 0 comments

Comments

@sawcordwell
Copy link

I'm using Linux with Julia 0.3.7 and I wanted to quickly set up inotify-tools to watch my project and run the test sweet when I saved any files. The quickest script to write was to run the tests from a subshell. The minimal version would look like this run.sh file:

#!/usr/bin/bash
$($@)

If I use Base.Test then I get output as expected from base_test.jl:

module Tests
using Base.Test
@test 1 == 2
end

Used like bash run.sh julia base_test.jl will print the error message.

However fact_check.jl

module Tests
using FactCheck
facts() do
    @fact 1 => 2
end
end

bash run.sh julia fact_check.jl will print nothing. If run.sh has an echo instead:

#!/usr/bin/bash
echo $($@)

then I get the output but it is not formatted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant