<?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>5111</bug_id>
          
          <creation_ts>2013-09-04 08:12:56 +0000</creation_ts>
          <short_desc>Error for ptest when default shell is dash</short_desc>
          <delta_ts>2013-09-11 23:17:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5128</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihai Prica">mihai.prica</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36237</commentid>
    <comment_count>0</comment_count>
    <who name="Mihai Prica">mihai.prica</who>
    <bug_when>2013-09-04 08:12:56 +0000</bug_when>
    <thetext>1) Configure dash to be default shell (/bin/sh -&gt; bash);
2) Enable ptest using: DISTRO_FEATURES_append = &quot; ptest&quot;;
3) Build a recipe that contains a ptest package (ex strace);
4) Look in the log.do_configure_ptest_base or log.do_compile_ptest_base
and you will find the following error:

108: [: a-t:: unexpected operator

The problem comes from the ptest.bbclass where &quot;type -t&quot; is used to determine if the ptest functions are defined(lines 21,29,42). In dash &quot;type&quot; does not accept -t as a parameter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36563</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-09-11 23:17:54 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8905f7715d175c834c4d0797b2da7366ee2c8ace

*** This bug has been marked as a duplicate of bug 5128 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>