-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_workspacebuilder.py won't finish - no error message #620
Comments
I am not sure if I have the same problem, but I could reproduce and analyse the problem to be connected to the test Unfortunately I am not quite sure why it is happening and therefore don't have a good idea how to fix it. One probably would have to change the test to instead of using sh, maybe should use a different I still hope this little analysis helps to fix the test. |
This bug still exist. I am running the test in QEMU environment with 1.10.1 version, and it still running in infinite loop. This is because the tmux windows in QEMU output the qemu executable name. I write some print statement in the test, this is the variable And it cause the infinite loop. |
A test in package tmuxp will run into infinite loop. The test, "test_automatic_rename_option", use the pane name as loop break condition. However in the QEMU environment, the name of the pane will always be "qemu-riscv64-static", no matter what program user is using. Upstream report: tmux-python/tmuxp#620 (comment) Signed-off-by: Avimitin <avimitin@gmail.com>
Perhaps if |
#620 users are reporting that "sh" has a different name used in tmux windows across platforms.
#620 users are reporting that "sh" has a different name used in tmux windows across platforms.
A test in package tmuxp will run into infinite loop. The test, "test_automatic_rename_option", use the pane name as loop break condition. However in the QEMU environment, the name of the pane will always be "qemu-riscv64-static", no matter what program user is using. Upstream report: tmux-python/tmuxp#620 (comment) Signed-off-by: Avimitin <avimitin@gmail.com>
This is actually exactly what I reported in #704 (comment) . The test hangs and the comparison that never succeeds is Does any of ye @aRkedos @jerri @Avimitin have the problem described in #704 ? it is basically the combo:
and then seeing a window with a very thin pane on top. |
Fixes #368, as retry() in its current form is broke and won't work within a `with` block. The function is deprecated and will be removed in 0.13.x. 0.12.x will warn when using it. retry_until() is now available and will either raise or return False if raise=False is passed. See also: - tmux-python/tmuxp#620 - tmux-python/tmuxp#704 (comment)
#620 users are reporting that "sh" has a different name used in tmux windows across platforms.
@categulario @jerri @Avimitin @aRkedos If you try https://github.com/tmux-python/tmuxp/tree/v1.12.0a3 / https://pypi.org/project/tmuxp/1.12.0a3/, does it work now? |
It seems like the libtmux module doesn't have
I am using |
@Avimitin What version of tmuxp do you have? What command are you running? |
I am using the pre-release 1.12.0a5 version. And this error was prompt up when I was running |
@tony just for the record. I am still experiencing this. The issue should not be closed. The symptoms are the same, the comparison Of course the difference now is that a proper WaitTimeout error raised. |
Ok, I just debugged the problem with this test. Maybe @Avimitin can confirm. In my computer |
Step 1: Provide a summary of your problem
I was trying to run the tests with
make test
and the workspacebuilder_test seems to run endlessly (did have it running for more than 10 minutes, 2 times) before exiting with C-c.Sorry if that is a bit too unspecific but I am not that expierienced with tests. So I'll gladly take advice. The reason for running the tests is that I am working on an issue / feature request.
Edit: okay I narrowed it down to the
def pane_order_test()
. I marked it to be skipped. All other tests pass.Edit2: I narrowed it down further: the while loop in the test, at least for me, leads to an infinite loop because the breaking condition of
if p.current_path == pane_path
is never met, it always compares/usr/bin
vs./usr/sbin
.Step 2: Provide tmuxp details
Step 3: Describe your environment
Step 4: Describe the problem:
Steps to reproduce:
make test
Observed Results:
Not sure what to provide here since I am not that expierenced with tests. So advice is needed.
Expected Results:
To finish all tests.
Relevant Code:
Did not make changes to testing code.
The text was updated successfully, but these errors were encountered: