From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] Question regarding background jobs in LTP
Date: Fri, 1 Mar 2019 12:49:53 +0100 [thread overview]
Message-ID: <20190301114953.GA32413@rei.lan> (raw)
In-Reply-To: <AD78C4C6-E57B-4E67-91CC-EFD43E8CE99E@linux.vnet.ibm.com>
Hi!
> We've found an issue when executing our testcase mon_fsstatd under LTP.
> The test logic assumes that we start some processes as shell jobs and then kill them, like in these commands
>
> mon_fsstatd_run 0 "mon_procd -a &"
> sleep 2
> mon_fsstatd_run 0 "killall mon_procd"
>
> But so far we observe that the testcase being run as
> ./runltp -f s390x_tests
> simply hangs at the point of starting background job, it simply runs in foreground, and then test finishes with error after timeout.
>
> Is it possible to execute background jobs in LTP ?
It should be possible unless the command you are trying to run needs
access to stdin since that could be done only by the process group
leader which is always the ltp-pan binary.
From the snippet of code it's not 100% clear what the code does, can you
share at least the code for mon_fsstad_run function? Also have you tried
to change the shebang to #!/bin/sh -x to see where exactly it hangs?
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2019-03-01 11:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-28 14:42 [LTP] Question regarding background jobs in LTP Elif Aslan
2019-03-01 11:49 ` Cyril Hrubis [this message]
2019-03-04 9:33 ` Elif Aslan
2019-03-04 13:36 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190301114953.GA32413@rei.lan \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox