comparison tests/test-extension.t @ 47851:d88f4231712c stable

pyoxidizer: disable the test for disabled & broken extensions help The test is a bit fragile and the feature is significantly broken for 3rd party extension already. So we disable that section with a comment about why and what is needed. Differential Revision: https://phab.mercurial-scm.org/D11304
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 18 Aug 2021 21:05:46 +0200
parents 7835f2696de8
children a9bedc56f025
comparison
equal deleted inserted replaced
47850:b962a913ee3b 47851:d88f4231712c
1376 "patchbomb.confirm" to true. 1376 "patchbomb.confirm" to true.
1377 1377
1378 (use 'hg help extensions' for information on enabling extensions) 1378 (use 'hg help extensions' for information on enabling extensions)
1379 1379
1380 1380
1381 Help can find unimported extensions
1382 -----------------------------------
1383
1384 XXX-PYOXIDIZER since the frozen binary does not have source directory tree,
1385 this make the checking for actual file under `hgext` a bit complicated. In
1386 addition these tests do some strange dance to ensure some other module are the
1387 first in `sys.path` (since the current install path is always in front
1388 otherwise) that are fragile and that does not match reality in the field. So
1389 for now we disable this test untill a deeper rework of that logic is done.
1390
1391 #if no-pyoxidizer
1392
1381 Broken disabled extension and command: 1393 Broken disabled extension and command:
1382 1394
1383 $ mkdir hgext 1395 $ mkdir hgext
1384 $ echo > hgext/__init__.py 1396 $ echo > hgext/__init__.py
1385 $ cat > hgext/broken.py <<NO_CHECK_EOF 1397 $ cat > hgext/broken.py <<NO_CHECK_EOF
1410 > EOF 1422 > EOF
1411 $ hg --config extensions.path=./path.py help foo 1423 $ hg --config extensions.path=./path.py help foo
1412 abort: no such help topic: foo 1424 abort: no such help topic: foo
1413 (try 'hg help --keyword foo') 1425 (try 'hg help --keyword foo')
1414 [255] 1426 [255]
1427
1428 #endif
1429
1430 ---
1415 1431
1416 $ cat > throw.py <<EOF 1432 $ cat > throw.py <<EOF
1417 > from mercurial import commands, registrar, util 1433 > from mercurial import commands, registrar, util
1418 > cmdtable = {} 1434 > cmdtable = {}
1419 > command = registrar.command(cmdtable) 1435 > command = registrar.command(cmdtable)