Skip to content

Commit

Permalink
Parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Gomez Casanova committed Oct 6, 2014
1 parent 50b2788 commit ad3e4c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/scripts/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ if ( $LastExitCode -ne 0 ) {
echo "x for executing"
echo "The test file should have this structure: Test_<SCHEMA_NAME>.sql"
} else {
SCHEMA=$Args[0]
OPTION_1=$Args[1]
OPTION_2=$Args[2]
$SCHEMA=$Args[0]
$OPTION_1=$Args[1]
$OPTION_2=$Args[2]
# Execute the tests.
if ( "${OPTION_1}" -eq "" -or "${OPTION_1}" -eq "i" -or "${OPTION_2}" -eq "i" ( {
if ( "${OPTION_1}" -eq "" -or "${OPTION_1}" -eq "i" -or "${OPTION_2}" -eq "i" ) {
# Prepares the installation.
db2 "DELETE FROM LOGS" | Out-Null
db2 "DROP TABLE ${SCHEMA}.REPORT_TESTS" | Out-Null
Expand All @@ -55,7 +55,7 @@ if ( $LastExitCode -ne 0 ) {
db2 "CALL DB2UNIT.CLEAN()"
}

if ( "${OPTION_1}" -eq "" -or "${OPTION_1}" -eq "i" -or "${OPTION_2}" -eq "i" ( {
if ( "${OPTION_1}" -eq "" -or "${OPTION_1}" -eq "i" -or "${OPTION_2}" -eq "i" ) {
db2 "CALL LOGADMIN.LOGS(min_level=>4)"
db2 "SELECT EXECUTION_ID EXEC_ID, VARCHAR(SUBSTR(TEST_NAME, 1, 32), 32) TEST,
FINAL_STATE STATE, TIME, VARCHAR(SUBSTR(MESSAGE, 1, 128), 128)
Expand Down

0 comments on commit ad3e4c2

Please sign in to comment.