mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
0dab1ab662
Summary: All of the test-check*.t tests cd out of the test repository and into the main normal fb-hgext repository, and attempt to run hg commands there to examine the repository contents. Unfortunately they were doing so still using the HGRCPATH settings configured for the test repository. In practice this causes the tests in many situations, because extensions enabled in the system configuration and required for the main repository may not have been enabled. Test Plan: Ran "arc unit" in a repository with sqldirstate enabled and confirmed the tests pass now instead of bombing out with screenfuls of error messages. Reviewers: #sourcecontrol, stash, durham, rmcelroy Reviewed By: rmcelroy Subscribers: rmcelroy, net-systems-diffs@, yogeshwer, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4427670 Signature: t1:4427670:1484733701:f6c859c29d34eb33b1280e798ab3398a03a3a461
18 lines
442 B
Perl
18 lines
442 B
Perl
#require test-repo
|
|
|
|
This file is backported from mercurial/tests/test-check-shbang.t.
|
|
|
|
$ . "$RUNTESTDIR/helpers-testrepo.sh"
|
|
$ cd "$TESTDIR"/..
|
|
$ unset HGRCPATH
|
|
|
|
look for python scripts that do not use /usr/bin/env
|
|
|
|
$ hg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env python")'
|
|
[1]
|
|
|
|
look for shell scripts that do not use /bin/sh
|
|
|
|
$ hg files 'set:grep(r"^#!.*/bi{1}n/sh") and not grep(r"^#!/bi{1}n/sh")'
|
|
[1]
|