Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7001525

Provide hook to execute something on test timeout

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • jtreg4.1
    • tools
    • None
    • generic
    • generic

      Please provide hook to execute some test script on timeout. HS developers requested pstack / jstack on test hang (see comments). We are implementing it in Tonga (see CR 6504662) and it would be good to have it in jtreg too.

      I suggest to add switch -ontimeout:/path/on_timeout.sh.

      If it possible to implement, pass PID of test process (either java or script), though this is not absolutely required (the script could find jtreg process, it's parent and then scan entire subtree to find java processes).

            sla Staffan Larsen (Inactive)
            nhaustov Nicolay Haustov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: