Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-341

Remove occurences of "../../ci-working-dir"

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent, Tests, WebServer
    • Labels:
      None
    • Commits:
      955eb7a76da4cc0ffb53a2508b10272b00f28b68 (qtqa/tqtc-coin-ci/master)

      Description

      When I was running tests, they failed in an obscure way because they couldn't write to /home/tmp/ci-working-dir. It turns out this was because a chain of events starting at workspace.go:RootWorkingDirectory()

      	dir = filepath.Join(folderPath, "..", "..", "ci-working-dir")
      

      This escapes the temporary directory created by tests under /tmp and creates problems. There are many occurrences of "../../ci-working-dir" in both python and go code. We could replace all of them with a temporary directory under /tmp or /var/tmp or even at $HOME/ci-working-dir, or even require a command-line option.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            aakeskimo Aapo Keskimölö
            Reporter:
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes