From a2d43edc92bb8eccc3da77a7cdaa069712f3ae9f Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Tue, 1 Apr 2008 07:08:57 +0000
Subject: [PATCH] LMS-281 bug fixed in function
 assert_correct_dataset_content_in_database

SVN: 5135
---
 integration-tests/run.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/integration-tests/run.sh b/integration-tests/run.sh
index 278297de25e..316003fb950 100755
--- a/integration-tests/run.sh
+++ b/integration-tests/run.sh
@@ -659,7 +659,8 @@ function assert_correct_content_of_unidentified_plate_in_store {
 function assert_correct_dataset_content_in_database {
     local dataset_id=$1
     local pattern=$2
-    local dataset=`pqsl -U postgres -d lims_integration_test -c "select id, data_producer_code, production_timestamp from data where id = $dataset_id" | awk '/ +[0-9]+/'`
+    local dataset=`psql -U postgres -d lims_integration_test \
+       -c "select id, data_producer_code, production_timestamp from data where id = $dataset_id" | awk '/ +[0-9]+/'`
     local lines=`echo $dataset | grep "$pattern" | wc -l`
     if [ $lines == 0 ]; then
         report_error dataset does not match pattern $pattern: $dataset
-- 
GitLab