Wind River Support Network

HomeDefectsLIN6-6557
Not to be fixed

LIN6-6557 : expect scripts should be based on regex

Created: Mar 7, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Workbench Integration

Description

Expect scripts present in the script directory intercept hardcoded strings that the target prompts.... although this method works on most targets, some targets such as the cgl ones do not prescribe to the hard coded strings. Expect scripts should use regular expressions instead. 

Steps to Reproduce

step 1; build a platform project 
configure --enable-board=qemux86-64 --enable-kernel=cgl --enable-rootfs=glibc-cgl --enable-parallel-pkgbuilds=5 --enable-jobs=5 --with-template=feature/analysis,feature/debug
make fs

step 2; start target
make start-target TOPTS="-in 5 -t"

step 3; start workbench and create a layer project
In the New Project dialog, expand
Wind River Linux > Wind River Linux Layer Project, and click Next.
In the New Wind River Linux Layer Project dialog, enter a name for the
project. Click Finish.

step 4; create a new file 
Using an editor, create a file called hello.txt 
The location of the file doesn't matter.

step 5; Create file associations
In the layer project, right click on "Manage_Layer" and click on "Build Target"
Choose "Associate File" dialog, 
Click New
Click Browse to navigate to and select the file to be associated (hello.txt)

In the install path field, enter the location of the file on the targets file system:
/root/

step 6; Deploy to the target
In "Manage_Layer" window, switch to "Login information" dialog
Enter the IP address and change the default values as required:
IP Address :  192.168.205.15
Username: root
Password: root
Port: 22

Click on "Deploy Layer".
Live chat
Online