Announcement

Collapse
No announcement yet.

local test-profile first run fails

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • local test-profile first run fails

    Hi,

    There is a problem with running a local test for the first time.

    After writing the complete test profile and installing the test, the test is not able to run. It fails with this error:
    Code:
    PHP Fatal error:  Cannot use string offset as an array in /local/phoronix-test-suite/pts-core/objects/pts_test_profile.php on line 186
    
    Fatal error: Cannot use string offset as an array in /local/phoronix-test-suite/pts-core/objects/pts_test_profile.php on line 186
    After replacing the generated History XML element in the pts-install.xml with a history of a non local test, it works.
    This is the history I replaced:
    Code:
        <History>
          <InstallTime>2011-09-01 11:13:45</InstallTime>
          <InstallTimeLength>0</InstallTimeLength>
          <LastRunTime>0000-00-00 00:00:00</LastRunTime>
          <TimesRun>0</TimesRun>
          <AverageRunTime></AverageRunTime>
          <LatestRunTime></LatestRunTime>
        </History>

  • #2
    Originally posted by scosu View Post
    Hi,

    There is a problem with running a local test for the first time.

    After writing the complete test profile and installing the test, the test is not able to run. It fails with this error:
    Code:
    PHP Fatal error:  Cannot use string offset as an array in /local/phoronix-test-suite/pts-core/objects/pts_test_profile.php on line 186
    
    Fatal error: Cannot use string offset as an array in /local/phoronix-test-suite/pts-core/objects/pts_test_profile.php on line 186
    After replacing the generated History XML element in the pts-install.xml with a history of a non local test, it works.
    This is the history I replaced:
    Code:
        <History>
          <InstallTime>2011-09-01 11:13:45</InstallTime>
          <InstallTimeLength>0</InstallTimeLength>
          <LastRunTime>0000-00-00 00:00:00</LastRunTime>
          <TimesRun>0</TimesRun>
          <AverageRunTime></AverageRunTime>
          <LatestRunTime></LatestRunTime>
        </History>
    Are you able to post this test profile?
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      yes, I uploaded the test-profile: http://allfex.org/files/hackbench_pts.tar.gz

      Comment


      • #4
        Originally posted by scosu View Post
        yes, I uploaded the test-profile: http://allfex.org/files/hackbench_pts.tar.gz
        I haven't verified if this is what's causing the problem, but the test profile version should be 1.0.0 rather than just 1.0. You can push your test profile through phoronix-test-suite validate-test-profile.

        $ ./phoronix-test-suite validate-test-profile hackbench

        Phoronix Test Suite v3.4.0m3
        local/hackbench


        Errors occurred parsing the main XML.

        Element 'Version': [facet 'pattern'] The value '1.0' is not accepted by the pattern '[0-9].[0-99].[0-99]'.
        Line 14: /home/michael/.phoronix-test-suite/test-profiles/local/hackbench/test-definition.xml
        Array
        (
        [0] => LibXMLError Object
        (
        [level] => 2
        [code] => 1831
        [column] => 0
        [message] => Element 'Version': [facet 'minLength'] The value has a length of '3'; this underruns the allowed minimum length of '5'.

        [file] => /home/michael/.phoronix-test-suite/test-profiles/local/hackbench/test-definition.xml
        [line] => 14
        )

        )
        Michael Larabel
        https://www.michaellarabel.com/

        Comment


        • #5
          I changed the test-profile version to 1.0.0, the XML is valid now. But the problem is still the same.

          Comment

          Working...
          X