<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8861</bug_id>
          
          <creation_ts>2015-12-24 08:43:17 +0000</creation_ts>
          <short_desc>System envs in /etc/profile are not injected in oeqa ssh connection</short_desc>
          <delta_ts>2016-02-15 02:18:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="dawei">daweix.wu</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>cathy.shen</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57471</commentid>
    <comment_count>0</comment_count>
    <who name="dawei">daweix.wu</who>
    <bug_when>2015-12-24 08:43:17 +0000</bug_when>
    <thetext>There is only PATH in ssh connection . So for some tests like nodejs , all cases will fail since it can not find node module wihout NODE_PATH which is defined in /etc/profile. 

ssh log like this:

[Running]$ ssh -l root -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR 192.168.8.60 export PATH=/usr/sbin:/sbin:/usr/bin:/bin; cd /tmp/iotivityjsapis/; /tmp/nodeunit-master/bin/nodeunit /tmp/iotivityjsapis/test_oic_client.js -t testOicClientHasCancelObservingPromise
module.js:338
    throw err;
          ^
Error: Cannot find module &apos;iotivity-node&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57475</commentid>
    <comment_count>1</comment_count>
    <who name="Cathy Shen">cathy.shen</who>
    <bug_when>2015-12-25 01:37:04 +0000</bug_when>
    <thetext>Hi Ross,
Noticed you submitted a path 20 days ago which might introduce this issue, will you guide how to get NODE_PATH included based on your solution?

https://github.com/otcshare/iot-os/commit/30d5ed65af9bf67d00985b93d3ce24796ffbfa38

Thanks,
Cathy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58956</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-12 15:30:59 +0000</bug_when>
    <thetext>Why can&apos;t your test case set NODE_PATH directly if that&apos;s a required value?

/etc/profile is for *interactive* shells and sshing in for automated testing doesn&apos;t count as an interactive shell (you can take that up with SSH maintainers, not me) which is why we removed the sourcing of profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58989</commentid>
    <comment_count>3</comment_count>
    <who name="Cathy Shen">cathy.shen</who>
    <bug_when>2016-02-15 02:18:14 +0000</bug_when>
    <thetext>Thanks, Ross.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>