[devel] the girar: /dev/pts/ -- Read-only file system?
Ivan Zakharyaschev
imz на altlinux.org
Сб Фев 20 17:53:00 MSK 2016
On Fri, 19 Feb 2016, Dmitry V. Levin wrote:
> On Fri, Feb 19, 2016 at 08:45:27PM +0300, Ivan Zakharyaschev wrote:
>> ======================================================================
>> ERROR: test_read_pty_output
>> (test.test_asyncio.test_events.EPollEventLoopTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "/usr/src/RPM/BUILD/python3-3.5.1/Lib/test/support/__init__.py",
>> line 564, in wrapper
>> return func(*args, **kw)
>> File "/usr/src/RPM/BUILD/python3-3.5.1/Lib/test/support/__init__.py",
>> line 519, in wrapper
>> return func(*args, **kw)
>> File
>> "/usr/src/RPM/BUILD/python3-3.5.1/Lib/test/test_asyncio/test_events.py",
>> line 1376, in test_read_pty_output
>> master, slave = os.openpty()
>> PermissionError: [Errno 1] Operation not permitted
>>
>> Да?
>
> Это когда-то раньше работало?
Прошло с %check под strace загадочным образом.
Теперь любопытным можно прочитать список unmets, которые создаст
python3-3.5 -- http://git.altlinux.org/tasks/159698/logs/events.5.1.log .
Вот diff, который привёл к успешному прохождению -- если ldv@ не менял
ничего в сборочнице, загадка остаётся (там какой-то race? Заметьте,
strace без -f):
$ git --no-pager diff 3.5.1-alt1..3.5.1-alt1.strace
diff --git a/python3.spec b/python3.spec
index be75bad..6157ad2 100644
--- a/python3.spec
+++ b/python3.spec
@@ -61,11 +61,12 @@
Summary: Version 3 of the Python programming language aka Python 3000
Name: python3
Version: %{pybasever}.1
-Release: alt1
+Release: alt1.strace
License: Python
Group: Development/Python3
BuildRequires(pre): rpm-build-python3 >= 0.1.7
+BuildRequires(check): strace
BuildPreReq: liblzma-devel
# For Bluetooth support
# see https://bugzilla.redhat.com/show_bug.cgi?id=879720
@@ -794,7 +795,7 @@ EOF
%add_python3_compile_exclude %_libdir/python%pybasever
%check
-WITHIN_PYTHON_RPM_BUILD= LD_LIBRARY_PATH=`pwd` ./python -m test.regrtest
--verbose --findleaks
+WITHIN_PYTHON_RPM_BUILD= LD_LIBRARY_PATH=`pwd` strace ./python -m
test.regrtest --verbose --findleaks
%files
%doc LICENSE README
@@ -1054,6 +1055,11 @@ WITHIN_PYTHON_RPM_BUILD= LD_LIBRARY_PATH=`pwd`
./python -m test.regrtest --verbo
%pylibdir/Tools/scripts/run_tests.py
%changelog
+* Sat Feb 20 2016 Ivan Zakharyaschev <imz на altlinux.org> 3.5.1-alt1.strace
+- strace %%check (for debugging the Girar);
+ I look for the pieces of the log with the errors like this:
+ sed -e '/test_read_pty_output/,/ERR/ { p; }; d' log
+
* Mon Jan 18 2016 Gleb F-Malinovskiy <glebfm на altlinux.org> 3.5.1-alt1
- Updated to 3.5.1.
- Synced with Fedora python3-3.5.1-1.
--
Best regards,
Ivan
Подробная информация о списке рассылки Devel