mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
3588633bb7
Summary: The tests are broken on non-fbcode builds because mysql-connector-python is the old version. We're unable to upgrade mysql-connector-python on centos 7/8 because yummy is broken. This blocks us from getting a release. Let's roll back the mysql-connector-python upgrade for now, until yummy is fixed. Reviewed By: singhsrb Differential Revision: D21162119 fbshipit-source-id: 5d0b266d72274540eca5b9a76bf151a0fbbee059
47 lines
874 B
Perl
47 lines
874 B
Perl
#require py2
|
|
#chg-compatible
|
|
|
|
$ . "$TESTDIR/hgsql/library.sh"
|
|
|
|
# Populate the db with an initial commit
|
|
|
|
$ initclient client
|
|
$ cd client
|
|
$ echo x > x
|
|
$ hg commit -qAm x
|
|
$ cd ..
|
|
|
|
$ initserver master masterrepo
|
|
|
|
# Test with stat profiler
|
|
$ cat >> master/.hg/hgrc <<EOF
|
|
> [hgsql]
|
|
> profiler=stat
|
|
> profileoutput=$TESTTMP/
|
|
> EOF
|
|
|
|
$ cd client
|
|
$ hg push -q ssh://user@dummy/master
|
|
$ cat $TESTTMP/hgsql-profile* | grep "Total Elapsed Time"
|
|
Total Elapsed Time: * (glob)
|
|
$ rm -f $TESTTMP/hgsql-profile*
|
|
|
|
$ cd ..
|
|
|
|
# Test with ls profiler
|
|
$ cat >> master/.hg/hgrc <<EOF
|
|
> [hgsql]
|
|
> profiler=ls
|
|
> profileoutput=$TESTTMP/
|
|
> EOF
|
|
|
|
$ cd client
|
|
$ echo x >> x
|
|
$ hg commit -qAm x
|
|
$ hg push -q ../master
|
|
$ cat $TESTTMP/hgsql-profile* | grep "Total Elapsed Time"
|
|
Total Elapsed Time: * (glob)
|
|
$ rm -f $TESTTMP/hgsql-profile*
|
|
|
|
$ cd ..
|