rexpect icon indicating copy to clipboard operation
rexpect copied to clipboard

could not run `quit` on child process despite calling `quit`

Open drewstone opened this issue 1 year ago • 0 comments

Hello,

I'm having trouble shutting down the bash shell I've spawned after I'm done.

  • Repo/branch: https://github.com/tangle-network/envio-indexer-blueprint/pull/4

I'm shutting down the session using the following and I've tried various combinations of the 3 commands below without luck on this error.

                    println!("Project template ready");
                    session.send_control('c')?;
                    session.send_line("exit")?;
                    session.send_line("quit")?;

And yet my logs show

Project template ready
Waiting for envio process to exit...
Envio process (PID: 39748) exited with code 1
thread 'envio_utils::project::tests::test_project_lifecycle' panicked at /Users/drew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rexpect-0.6.0/src/session.rs:356:37:
could not run `quit` on child process
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test envio_utils::project::tests::test_project_lifecycle ... FAILED

drewstone avatar Nov 28 '24 00:11 drewstone