Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » exec-process fails to complete when executing bash script
exec-process fails to complete when executing bash script [message #1836765] Wed, 13 January 2021 08:18 Go to next message
Eclipse UserFriend
I have a bash script that does the following:
Stops a component - changes the AUT date - starts the component that was previously stopped

The bash script takes one argument, the date and time that the AUT should be set to.

The bash script works fine when run from the terminal.

When I attempt to execute the bash script from RCPTT using the exec-process command, the first part appears to work fine. The component gets stopped. The AUT date also changes but RCPTT then either returns a failure (timeout) or it continues to execute without doing anything, i.e. it never starts the component.

Below is my ECL code:
exec-process -command "/mnt/home/Scripts/stop_SetDate_Start.sh" -args "2019/01/01 00:00:00" -timeout 180 -ignoreStderr "true" | get stdout | log

Has anyone seen a similar issue before? I am out of ideas of what to try next!

[Updated on: Thu, 14 January 2021 03:40] by Moderator

Re: exec-process fails to complete when executing bash script [message #1836791 is a reply to message #1836765] Wed, 13 January 2021 23:37 Go to previous message
Eclipse UserFriend
Hi @Lee GardnerFriend

I have encounter the same problems with yours
When you change the system date, RCPTT will change the same as time as your current time and your target time. If it's larger than your testcase-time-out, it will go fail with time-out message

So here are my workaround: I create a testcase to execute individual this change-time-script and mark it as _Failed_OnPurpose
Eg: My test case [TESTCASE] need to do : 2 time change day and time
So i will split it to 5 Test case:
[TESTCASE]_1
[TESTCASE]_2_Failed_OnPurpose
[TESTCASE]_3
[TESTCASE]_4_Failed_OnPurpose
[TESTCASE]_5

Sorry for my poor english. Hope it help.
Previous Topic:right click not being recorded correctly
Next Topic: I am getting org.osgi.framework.BundleException when I am running project by run>run configurati
Goto Forum:
  


Current Time: Thu Apr 24 23:34:53 EDT 2025

Powered by FUDForum. Page generated in 0.03373 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top