Read parameters from resource file
This commit is contained in:
parent
b0cf0f5035
commit
0a869da1d5
3 changed files with 52 additions and 45 deletions
|
@ -5,6 +5,11 @@ TMP=/tmp/cliargs
|
|||
|
||||
java -cp "lib/test/*" $MAIN >$TMP 2>/dev/null
|
||||
|
||||
cat $TMP | grep "^ -.*" | sed -e "s/ -/-/" -e "s/^-/\"-/" -e "s/$/\",/" -e "s/, -/\",\n\"-/" | sed "/testRunFactory/d" | sort | sed '$s/,//'
|
||||
cat $TMP |\
|
||||
grep "^ -.*" |\
|
||||
sed -e "s/ -/-/" -e "s/, -/\n-/" |\
|
||||
sed "/testRunFactory/d" |\
|
||||
sort |\
|
||||
sed '$s/,//' > "src/test/resources/testng-args.txt"
|
||||
|
||||
rm -rf $TMP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue