Mercurial > hg
changeset 41727:e1643a0455c8
test-sqlitestore: run sqlite3 with no init file
These tests were failing for me because I have a ~/.sqliterc that
alters the default output. Tests should ignore any init file.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 18 Feb 2019 18:44:21 -0500 |
parents | 35158796f52f |
children | 36b62a522814 |
files | tests/test-sqlitestore.t |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-sqlitestore.t Thu Feb 14 18:28:27 2019 +0530 +++ b/tests/test-sqlitestore.t Mon Feb 18 18:44:21 2019 -0500 @@ -71,17 +71,17 @@ That results in a row being inserted into various tables - $ sqlite3 .hg/store/db.sqlite << EOF + $ sqlite3 .hg/store/db.sqlite -init /dev/null << EOF > SELECT * FROM filepath; > EOF 1|foo - $ sqlite3 .hg/store/db.sqlite << EOF + $ sqlite3 .hg/store/db.sqlite -init /dev/null << EOF > SELECT * FROM fileindex; > EOF 1|1|0|-1|-1|0|0|1||6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe (esc) - $ sqlite3 .hg/store/db.sqlite << EOF + $ sqlite3 .hg/store/db.sqlite -init /dev/null << EOF > SELECT * FROM delta; > EOF 1|1| \xd2\xaf\x8d\xd2"\x01\xdd\x8dH\xe5\xdc\xfc\xae\xd2\x81\xff\x94"\xc7|0 (esc) @@ -93,7 +93,7 @@ $ hg commit -A -m 'add bar' adding bar - $ sqlite3 .hg/store/db.sqlite << EOF + $ sqlite3 .hg/store/db.sqlite -init /dev/null << EOF > SELECT * FROM filedata ORDER BY id ASC; > EOF 1|1|foo|0|6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe|-1|-1|0|0|1| (esc) @@ -104,7 +104,7 @@ $ echo a >> foo $ hg commit -m 'modify foo' - $ sqlite3 .hg/store/db.sqlite << EOF + $ sqlite3 .hg/store/db.sqlite -init /dev/null << EOF > SELECT * FROM filedata ORDER BY id ASC; > EOF 1|1|foo|0|6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe|-1|-1|0|0|1| (esc)