-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Testing of chromium distributed by grafana-image-renderer
* We need to do some basic test using chromium shipped by Grafana image renderer before using it. We were testing it using `--help` flag which does not exist on the application. If it works, it hangs which is not what we want. * This commit fixes this test by using a command that returns upon successful execution. We also use a timeout just in case to avoid the command hanging in there forever. * We also setup a special home directory for chromium and inject `XDG_CONFIG_HOME` and `XDG_CONFIG_HOME` env vars in chromium process. This avoids chromium attempting to create directories in read-only folders. Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
- Loading branch information
1 parent
1d721a4
commit 0aadedb
Showing
2 changed files
with
56 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters