add atest to auto pick a project and test
This commit is contained in:
parent
11b56f4fd5
commit
645ec935cd
7
config/fish/functions/atest.fish
Normal file
7
config/fish/functions/atest.fish
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
function atest
|
||||||
|
set a_test (echo $argv | sed -e 's/\//\./g' | sed -e 's/.py//g')
|
||||||
|
set a_project (echo -n $a_test | python -c "import sys; print sys.stdin.read().split('.', 1)[0]");
|
||||||
|
set run_test (echo "bin/manage_"$a_project".py test "$a_test)
|
||||||
|
echo $run_test
|
||||||
|
eval $run_test
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user