File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tmt/tests/container/sanity/upgrade Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ su - postgres -c "
2929echo \" User switched\" ;
3030
3131createdb testdb;
32- psql -U postgres -d testdb -c \" create table users (id serial primary key, name text)\" ;
33- psql -U postgres -d testdb -c \" insert into users (name) values ('Alice'), ('Bob'), ('Celine')\"
32+ psql -h /tmp - U postgres -d testdb -c \" create table users (id serial primary key, name text)\" ;
33+ psql -h /tmp - U postgres -d testdb -c \" insert into users (name) values ('Alice'), ('Bob'), ('Celine')\"
3434"
3535su - postgres -c '
3636psql -U postgres -d testdb -c "select * from users"
@@ -39,6 +39,8 @@ psql -U postgres -d testdb -c "select * from users"
3939echo " Expected:"
4040cat expected.txt
4141
42+ test $( wc -l < expected.txt) -gt 0 || { echo " ERROR: expected.txt is empty!" ; exit 1; }
43+
4244# uninstall postgresql
4345dnf -y remove postgresql-server postgresql-private-libs postgresql libicu
4446
@@ -54,10 +56,11 @@ su - postgres -c "
5456"
5557
5658su - postgres -c '
57- psql -U postgres -d testdb -c "select * from users"
59+ psql -h /tmp - U postgres -d testdb -c "select * from users"
5860' > actual.txt
5961
6062echo " Actual:"
6163cat actual.txt
6264
6365diff -q expected.txt actual.txt && echo " Actual and expected outputs match" || { echo " Actual and expected outputs differ" ; exit 1; }
66+
You can’t perform that action at this time.
0 commit comments