~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to tests/run_tests.sh

  • Committer: Tyler Hicks
  • Date: 2012-01-27 18:21:48 UTC
  • Revision ID: tyhicks@canonical.com-20120127182148-ingnn8nyg2lzhzaf
When [ $? -ne 0 ] was true, it caused $? to be set to 0. Then, 0 was
returned instead of the error code. This resulted in error conditions
being masked.
  
Thanks to Sergio Peña for reporting and tracking down the problem.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
                ${test_dir}/${etest}
65
65
                if [ $? -ne 0 ]; then
66
 
                        rc=$?
 
66
                        rc=1
67
67
                        printf "FAIL\n"
68
68
                        exit
69
69
                fi
183
183
if [ "$blocks" -gt 0 ]; then
184
184
        etl_create_disk $blocks $disk_dir
185
185
        if [ $? -ne 0 ]; then
186
 
                rc=$?
 
186
                rc=1
187
187
                exit
188
188
        fi
189
189
        export ETL_LMOUNT_SRC=$ETL_DISK
200
200
 
201
201
        run_tests "${run_tests_dir}/kernel" "$ktests"
202
202
        if [ $? -ne 0 ]; then
203
 
                rc=$?
 
203
                rc=1
204
204
                exit
205
205
        fi
206
206
fi
213
213
 
214
214
        run_tests "${run_tests_dir}/userspace" "$utests"
215
215
        if [ $? -ne 0 ]; then
216
 
                rc=$?
 
216
                rc=1
217
217
                exit
218
218
        fi
219
219
fi